.rs-predmeti-groups-wrap{display:flex;flex-direction:column;gap:56px}
.rs-predmeti-group{
  --rs-group-title-color:#111111;
  --rs-group-card-bg:#111111;
  --rs-group-card-text:#ffffff;
  --rs-group-desc-color:#e6e6e6;
  --rs-group-content-color:#222222;
  --rs-group-title-size:clamp(28px,3vw,44px);
  --rs-group-item-title-size:24px;
  --rs-group-desc-size:16px;
  --rs-group-content-size:18px;
  --rs-group-columns:3;
}
.rs-predmeti-group__title,.rs-predmeti-carousel-header h2{font-size:var(--rs-group-title-size);line-height:1.1;margin:0 0 24px;color:var(--rs-group-title-color)}
.rs-predmeti-grid{display:grid;grid-template-columns:repeat(var(--rs-group-columns),minmax(0,1fr));gap:28px}
.rs-predmeti-card{background:var(--rs-group-card-bg);color:var(--rs-group-card-text);border-radius:0;overflow:hidden}
.rs-predmeti-card__link{text-decoration:none !important;color:inherit !important;display:block;height:100%}
.rs-predmeti-card__image{aspect-ratio:4/4;background:#1e1e1e;overflow:hidden}
.rs-predmeti-card__image img{width:100%;height:100%;object-fit:contain;display:block;background:#0f0f0f}
.rs-predmeti-card__content{padding:18px 18px 22px}
.rs-predmeti-card__content h3{margin:0 0 10px !important;font-size:var(--rs-group-item-title-size) !important;line-height:1.15 !important;color:var(--rs-group-card-text) !important;font-weight:700 !important}
.rs-predmeti-card__content p{margin:0 !important;opacity:.88;line-height:1.55 !important;color:var(--rs-group-desc-color) !important;font-size:var(--rs-group-desc-size) !important}
.rs-predmeti-group__content,.rs-predmeti-group__content *{color:var(--rs-group-content-color);font-size:var(--rs-group-content-size);line-height:1.75}
.rs-predmeti-group__content{margin-top:28px}

.rs-predmeti-carousel-wrap{
  padding:40px 36px 40px;
  background:var(--rs-section-bg,#000);
  color:var(--rs-text-color,#fff);
  position:relative;
  background-repeat:no-repeat;
  overflow:hidden;
}
.rs-predmeti-carousel-header{margin-bottom:18px;position:static !important;top:auto !important;left:auto !important;right:auto !important;transform:none !important;z-index:auto !important}
.rs-predmeti-carousel-header h2{position:static !important;top:auto !important}
.rs-predmeti-carousel-header h2{color:var(--rs-text-color,#fff);text-align:var(--rs-title-align,left);font-size:var(--rs-carousel-title-size,clamp(28px,3vw,44px));margin:0 !important;position:static !important;top:auto !important;left:auto !important;right:auto !important}
.rs-predmeti-carousel{position:relative}
.rs-carousel-track{
  display:flex;
  align-items:stretch;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden !important;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:6px 54px 0;
  cursor:grab;
}
.rs-carousel-track::-webkit-scrollbar{display:none}
.rs-carousel-track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.rs-carousel-card{flex:0 0 calc(33.333% - 11px);min-width:calc(33.333% - 11px);scroll-snap-align:start;background:transparent;overflow:visible;padding-bottom:170px}
.rs-carousel-card__inner{
  position:relative;
  background:var(--rs-card-bg,#18181b);
  padding:24px 22px 150px;
  height:500px;
  min-height:500px;
  max-height:500px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  overflow:visible;
}
.rs-carousel-card__text{max-height:150px;overflow:hidden;position:relative;z-index:4}
.rs-carousel-card__text h3{margin:0 0 10px !important;font-size:var(--rs-carousel-item-title-size,22px) !important;line-height:1.2 !important;color:var(--rs-text-color,#fff) !important;font-weight:700 !important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rs-carousel-card__text p{margin:0 !important;color:var(--rs-text-color,#fff) !important;opacity:.85;line-height:1.45 !important;font-size:var(--rs-carousel-item-desc-size,16px) !important;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;max-height:92px}
.rs-carousel-card__image{position:absolute;left:50%;right:auto;bottom:-185px;transform:translateX(-50%);display:block;width:100%;max-width:82%;min-height:0;overflow:visible;text-align:center;z-index:3;pointer-events:none}
.rs-carousel-card__image img{width:100%;height:290px;object-fit:contain;display:block;transform:none;pointer-events:none}
.rs-carousel-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:0;
  background:#fff;
  color:#111;
  cursor:pointer;
  font-size:20px;
  display:grid;
  place-items:center;
  z-index:5;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.rs-carousel-prev{left:18px}
.rs-carousel-next{right:18px}

.rs-predmeti-carousel-footer{display:flex;justify-content:center;align-items:center;margin-top:18px}
.rs-predmeti-carousel-button{display:inline-flex;align-items:center;justify-content:center;min-width:180px;padding:14px 26px;background:#ffffff;color:#111111 !important;text-decoration:none !important;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border:1px solid #ffffff;transition:all .25s ease}
.rs-predmeti-carousel-button:hover{background:transparent;color:#ffffff !important}

.rs-lightbox[hidden]{display:none!important}
.rs-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:99999;display:flex;align-items:center;justify-content:center;padding:40px}
.rs-lightbox__content{max-width:min(1100px,92vw);max-height:88vh;display:flex;flex-direction:column;align-items:center;gap:18px}
.rs-lightbox__image{max-width:100%;max-height:72vh;object-fit:contain}
.rs-lightbox__meta{text-align:center;color:#fff;max-width:760px}
.rs-lightbox__title{margin:0 0 8px;font-size:28px !important;color:#fff !important}
.rs-lightbox__caption{margin:0 !important;line-height:1.6 !important;opacity:.85;color:#fff !important}
.rs-lightbox__close,.rs-lightbox__nav{position:absolute;border:0;background:#fff;color:#111;cursor:pointer}
.rs-lightbox__close{top:20px;right:20px;font-size:34px;width:48px;height:48px}
.rs-lightbox__nav{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:24px}
.rs-lightbox__prev{left:20px}.rs-lightbox__next{right:20px}

@media (max-width: 1333px){
 .rs-carousel-card__inner{height:450px;min-height:450px;max-height:450px}
 .rs-carousel-card__image{bottom:-165px}
 .rs-carousel-card__image img{height:250px}
}
@media (max-width: 1200px){
 .rs-carousel-card{flex-basis:calc(50% - 8px);min-width:calc(50% - 8px)}
}
@media (max-width: 1024px){
 .rs-predmeti-grid{grid-template-columns:repeat(min(2,var(--rs-group-columns)),minmax(0,1fr))}
 .rs-carousel-track{padding-inline:42px}
}
@media (max-width: 767px){
 .rs-predmeti-grid{grid-template-columns:1fr}
 .rs-predmeti-carousel-wrap{padding:28px 12px 44px}
 .rs-predmeti-carousel-footer{margin-top:10px}
 .rs-predmeti-carousel-button{min-width:160px;padding:12px 20px;font-size:14px}
 .rs-carousel-card{flex-basis:100%;min-width:100%}
 .rs-carousel-card__inner{padding:20px 16px 104px;height:320px;min-height:320px;max-height:320px}
 .rs-carousel-card{padding-bottom:128px}
 .rs-carousel-card__text{max-height:110px}
 .rs-carousel-card__image{bottom:-112px;max-width:84%}
 .rs-carousel-card__image img{height:180px;transform:none}
 .rs-carousel-track{gap:12px;padding-inline:22px}
 .rs-carousel-nav{width:28px;height:28px;font-size:18px}
 .rs-carousel-prev{left:4px}
 .rs-carousel-next{right:4px}
 .rs-lightbox{padding:20px}
 .rs-lightbox__nav{width:40px;height:40px}
}

.rs-predmeti-carousel-wrap *, .rs-predmeti-carousel-wrap *::before, .rs-predmeti-carousel-wrap *::after{box-sizing:border-box}
.rs-predmeti-carousel-wrap .elementor-widget-container,
.rs-predmeti-carousel-wrap .elementor-widget-container *{position:static}
.rs-predmeti-carousel, .rs-carousel-track{overflow-y:hidden !important}
.rs-carousel-card, .rs-carousel-card__inner{overflow:visible !important}
