/* ================================================================
   fixes.css — clamp oversized images & video inside CMS content
   Loaded LAST so it wins over shared Webflow CSS.
   ================================================================ */

/* ---- Footer: warm earthy brown ---- */
.footer {
  background: #6b5740 !important;
  color: #fff;
}

/* ---- Media radius: consistent border-radius for all CMS content ---- */
:root {
  --media-radius: 12px;
}

/* ---- Images inside CMS grid ---- */
.cmswrap img,
.section-7 img {
  max-width: 100% !important;
  max-height: 100vh;
  object-fit: contain;
  height: auto;
}

/* .image-5 is used by pick-your-dress & mala-elektricna-harfa — override its object-fit:fill */
.cmswrap .image-5,
.section-7 .image-5 {
  max-width: 100% !important;
  object-fit: contain;
  max-height: 100vh;
}

/* CMS galleries use an extra cell wrapper around each image. */
.cmswrap .w-layout-grid.grid {
  grid-row-gap: 16px !important;
  grid-column-gap: 16px !important;
  gap: 16px !important;
}

.cmswrap .w-layout-grid.grid > div {
  overflow: hidden !important;
}

.cmswrap .w-layout-grid.grid > div > img {
  display: block;
}

/* ---- Video / iframe / embed wrappers inside CMS grid ---- */
.cmswrap .w-video,
.cmswrap .w-embed,
.section-7 .w-video,
.section-7 .w-embed {
  max-width: 100%;
  max-height: 100vh;
  border-radius: var(--media-radius);
  overflow: hidden;
}

/* Proslave video — cap the portrait video wrapper height */
.cmswrap .w-video[style*="padding-top:177"] {
  padding-top: 0 !important;
  aspect-ratio: 9 / 16;
  max-height: 400px !important;
}

/* YouTube embeds (embedly iframes) */
.cmswrap iframe.embedly-embed,
.section-7 iframe.embedly-embed {
  max-width: 100%;
  max-height: 100vh;
}

/* ---- .video-2, .video-3 — hardcoded 1000px, clamp them ---- */
.cmswrap .video-2,
.cmswrap .video-3,
.section-7 .video-2,
.section-7 .video-3 {
  width: 100%;
  max-width: 100%;
}

/* ---- .vid — rigid 320×120 box, make it fluid ---- */
.cmswrap .vid,
.section-7 .vid {
  width: 100%;
  height: auto;
  max-height: 100vh;
}

/* ---- .iframe-3 — rigid 400×400, make it fluid ---- */
.cmswrap .iframe-3,
.section-7 .iframe-3 {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100vh;
  aspect-ratio: 16 / 9;
}

/* ---- Content videos: constrain the Webflow padding-ratio wrapper ---- */
.cmswrap .w-video {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100vh !important;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--media-radius);
}

.cmswrap .w-video > video,
.cmswrap .w-video > iframe,
.cmswrap .w-video > object,
.cmswrap .w-video > embed {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  box-sizing: border-box;
}

/* Inline Webflow dimensions/object-fit otherwise override the content rules. */
.cmswrap .w-video > video[style],
.cmswrap .w-video > iframe[width][height] {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ---- Homepage hero: full viewport with the navbar over the image ---- */
html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper {
  position: relative;
}

html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav {
  position: absolute !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  background: rgba(30, 24, 20, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .banner {
  height: 100svh;
  min-height: 100vh;
  margin-top: 0 !important;
}

html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .banner > .banner-second {
  height: 100%;
  min-height: 100svh;
  margin-top: 0 !important;
  box-sizing: border-box;
}

html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav .logo-title,
html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav .nav-link {
  color: #fff;
}

/* Hero CTA: hide buttons on mobile */
@media screen and (max-width: 479px) {
  html[data-wf-page="663d5559324c383a3362cd4d"] .div-block-13.hero {
    display: none !important;
  }
}

@media screen and (max-width: 991px) {
  html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav {
    padding: 10px 16px !important;
    background: rgba(30, 24, 20, 0.2) !important;
  }

  html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav .menu-button,
  html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav .menu-button.w--open {
    color: #fff !important;
  }

  html[data-wf-page="663d5559324c383a3362cd4d"] .page-wrapper > .usluge.w-nav [data-nav-menu-open] .nav-link {
    color: #2c2118;
  }
}

/* ================================================================
   Video Gallery Slider — Wedding clips
   ================================================================ */
.video-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 0;
  box-sizing: border-box;
  user-select: none;
}

.video-slider__title {
  text-align: center;
  font-family: "Playfair Display", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: #333;
  margin: 0 0 70px;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--media-radius);
  position: relative;
}

.slider-track {
  display: flex;
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.slider-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--media-radius);
  background: #000;
  cursor: pointer;
}

.slider-slide video:hover {
  cursor: pointer;
}

/* Play overlay for paused state */
.slider-slide video:not(:hover) {
  cursor: default;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #333;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.2s;
}

.slider-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow--prev { left: 12px; }
.slider-arrow--next { right: 12px; }

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Reduce gap between slider and "Profesionalna izvođenja" */
.section-7 {
  padding-top: 120px !important;
  margin-top: 0 !important;
}

.section-7 .container-13 {
  margin-top: 0;
  margin-bottom: 60px;
}

@media screen and (max-width: 767px) {
  .section-7 .container-13 {
    margin-bottom: 0px;
  }
}

/* Make .heading (h1) match h2 section titles exactly */
.heading {
  font-family: "Playfair Display", sans-serif;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 36px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Consistent spacing for all video titles in professional performances section */

/* Normalize the gap between every title and its video inside section-7.
   Webflow gave different quick-stack-* classes different negative margins
   (-70px vs -40px), which made the title-to-video distance vary per item.
   We reset them all to the same value and enforce a uniform grid-row-gap. */
.section-7 .w-layout-layout.quick-stack-3,
.section-7 .w-layout-layout.quick-stack-4,
.section-7 .w-layout-layout.quick-stack-5,
.section-7 .w-layout-layout.quick-stack-6,
.section-7 .w-layout-layout.quick-stack-7,
.section-7 .w-layout-layout.quick-stack-8,
.section-7 .w-layout-layout.quick-stack-10 {
  margin-top: 0 !important;
  padding: 20px !important;
  grid-row-gap: 16px !important;
}

.section-7 .heading-12,
.section-7 .heading-13,
.section-7 .heading-14 {
  margin: 0 !important;
  padding: 0 !important;
}

.section-7 .heading-12 br,
.section-7 .heading-13 br,
.section-7 .heading-14 br {
  display: none !important;
}

@media screen and (max-width: 480px) {
  .section-7 .heading-12,
  .section-7 .heading-13,
  .section-7 .heading-14 {
    width: 100% !important;
    align-self: flex-start !important;
  }
  
  .section-7 .w-layout-layout.quick-stack-3,
  .section-7 .w-layout-layout.quick-stack-4,
  .section-7 .w-layout-layout.quick-stack-5,
  .section-7 .w-layout-layout.quick-stack-6,
  .section-7 .w-layout-layout.quick-stack-7,
  .section-7 .w-layout-layout.quick-stack-8,
  .section-7 .w-layout-layout.quick-stack-10 {
    margin-top: 0 !important;
    padding: 0 20px !important;
    grid-row-gap: 12px !important;
  }

  .section-7 .efi-ft-06-features {
    grid-row-gap: 18px !important;
  }

  .video-slider__title {
    margin-bottom: 48px !important;
  }
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #999;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s;
}

.slider-dot.active {
  background: #333;
  border-color: #333;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
  .video-slider {
    padding: 24px 0 0;
    max-width: 100%;
  }
  .video-slider__title {
    margin-bottom: 32px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .slider-arrow--prev { left: 8px; }
  .slider-arrow--next { right: 8px; }
}

@media screen and (max-width: 479px) {
  .video-slider__title {
    margin-bottom: 28px;
  }
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 768px) {
  .cmswrap .w-layout-grid.grid {
    grid-template-columns: 1fr !important;
    grid-row-gap: 16px !important;
    grid-column-gap: 16px !important;
    gap: 16px !important;
  }

  .cmswrap img,
  .section-7 img {
    border-radius: var(--media-radius) !important;
  }

  .cmswrap .w-layout-grid.grid > div {
    border-radius: var(--media-radius) !important;
  }

  .cmswrap .w-layout-grid.grid > div > img {
    border-radius: var(--media-radius) !important;
    clip-path: inset(0 round var(--media-radius));
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* ---- About-me: equal image gaps on mobile ---- */
@media screen and (max-width: 991px) {
  .about-me {
    flex-direction: column;
  }

  .about-me ._6-col {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .about-me ._6-col._6-col-last {
    padding-left: 0;
  }

  .about-me .content6-pic {
    margin-bottom: 20px;
  }

  .about-me .content6-pic:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 479px) {
  .about-me .content6-pic.content6-image3 {
    margin-top: 0;
  }
}

/* ---- Saradnici logos: independent layout ---- */
.saradnici-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
  padding: 40px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.saradnici-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.saradnici-logos img:nth-child(1) {
  height: 168px;
}
.saradnici-logos img:nth-child(2) {
  height: 42px;
}
.saradnici-logos img:nth-child(3) {
  height: 85px;
}
.saradnici-logos img:hover {
  opacity: 1;
}

/* Desktop: equal columns, 3rd centered */
@media screen and (min-width: 992px) {
  .saradnici-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 40px 0 60px;
  }
  .saradnici-logos img {
    justify-self: center;
    height: 70px;
  }
  .saradnici-logos img:nth-child(1) {
    height: 185px;
  }
  .saradnici-logos img:nth-child(2) {
    height: 49px;
  }
  .saradnici-logos img:nth-child(3) {
    height: 95px;
  }
}

/* Tablet: 3 + 2 */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .saradnici-logos {
    gap: 28px 32px;
    padding: 40px 20px 50px;
  }
  .saradnici-logos img {
    height: 50px;
  }
  .saradnici-logos img:nth-child(1) {
    height: 100px;
  }
  .saradnici-logos img:nth-child(2) {
    height: 35px;
  }
  .saradnici-logos img:nth-child(3) {
    height: 60px;
  }
}

/* Mobile: 2 + 3 grid */
@media screen and (max-width: 767px) {
  .saradnici-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 0;
    padding: 40px 16px 40px;
  }
  .saradnici-logos img:nth-child(1),
  .saradnici-logos img:nth-child(2) {
    grid-column: span 3;
    justify-self: center;
  }
  .saradnici-logos img:nth-child(2) {
    align-self: center;
  }
  .saradnici-logos img:nth-child(3),
  .saradnici-logos img:nth-child(4),
  .saradnici-logos img:nth-child(5) {
    grid-column: span 2;
    justify-self: center;
  }
  .saradnici-logos img {
    height: 50px;
  }
  .saradnici-logos img:nth-child(1) {
    height: 176px;
  }
  .saradnici-logos img:nth-child(2) {
    height: 35px;
  }
  .saradnici-logos img:nth-child(3) {
    height: 116px;
  }
  .saradnici-logos img:nth-child(4) {
    height: 70px;
  }
}

/* The image gallery is the second grid inside the CMS wrapper on these two pages. */
html[data-wf-item-slug="mala-elektricna-harfa"] #usluge-rodj > .cmswrap > .w-layout-grid.grid + .w-layout-grid.grid,
html[data-wf-item-slug="harfa-duo-sa-violinom"] #usluge-rodj > .cmswrap > .w-layout-grid.grid + .w-layout-grid.grid {
  border-radius: var(--media-radius) !important;
  overflow: hidden !important;
}

html[data-wf-item-slug="mala-elektricna-harfa"] #usluge-rodj > .cmswrap > .w-layout-grid.grid + .w-layout-grid.grid > div,
html[data-wf-item-slug="harfa-duo-sa-violinom"] #usluge-rodj > .cmswrap > .w-layout-grid.grid + .w-layout-grid.grid > div {
  border-radius: var(--media-radius) !important;
  overflow: hidden !important;
}

html[data-wf-item-slug="mala-elektricna-harfa"] #usluge-rodj > .cmswrap > .w-layout-grid.grid + .w-layout-grid.grid > div > img,
html[data-wf-item-slug="harfa-duo-sa-violinom"] #usluge-rodj > .cmswrap > .w-layout-grid.grid + .w-layout-grid.grid > div > img {
  display: block !important;
  width: 100% !important;
  border-radius: var(--media-radius) !important;
}

/* ---- Saradnici page: reduce whitespace above footer ---- */
/* Desktop: .container margin-bottom 121px -> 61px (reduce 60px) */
html[data-wf-page="663d5559324c383a3362cd59"] .page-content .container {
  margin-bottom: 61px !important;
}
/* Phone: tighten further — minimal white space above footer */
@media screen and (max-width: 767px) {
  html[data-wf-page="663d5559324c383a3362cd59"] .page-content .container {
    margin-bottom: 16px !important;
  }
}
/* Phone: the videos have margin-top:-224px which pulled them up into the
   logos. Set to 0 so logos and videos don't overlap. */
@media screen and (max-width: 767px) {
  html[data-wf-page="663d5559324c383a3362cd59"] .page-content .div-block-10.saradnici {
    margin-top: 0 !important;
  }
}

/* Saradnici: reduce section top padding on mobile */
@media screen and (max-width: 767px) {
  html[data-wf-page="663d5559324c383a3362cd59"] .page-content .section {
    padding-top: 0 !important;
  }
}

/* ---- Kontakt page: reduce whitespace above footer ---- */
/* Original: .container margin-bottom:121px */
html[data-wf-page="663d5559324c383a3362cd52"] .page-content .container {
  margin-bottom: 61px !important;
}
@media screen and (max-width: 479px) {
  html[data-wf-page="663d5559324c383a3362cd52"] .page-content .container {
    margin-bottom: 64px !important;
  }
}

/* ================================================================
   Homepage: Usluge Section & Cards Layout Fix
   Eliminates narrow card width / layout shift on initial scroll.
   ================================================================ */

#usluge,
#usluge.wrap,
#usluge.wrap.w80-50 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

#usluge > .w-container,
#usluge > .w-layout-blockcontainer,
#usluge .w-layout-blockcontainer.w-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Force block display so flex shrink-wrap never squishes the cards grid */
#usluge .project_list-wrapper,
.project_list-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#usluge .project_list-2,
.project_list-2 {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  grid-column-gap: 1.5rem !important;
  grid-row-gap: 1.5rem !important;
}

/* Desktop: 3 columns */
@media screen and (min-width: 992px) {
  #usluge .project_list-2,
  .project_list-2 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  #usluge .project_item-3,
  .project_item-3,
  .project_item-3.item3 {
    height: 380px !important;
  }
}

/* Tablet (768px - 991px): 1 column full width */
@media screen and (min-width: 768px) and (max-width: 991px) {
  #usluge .project_list-2,
  .project_list-2 {
    grid-template-columns: 1fr !important;
  }
  #usluge .project_item-3,
  .project_item-3,
  .project_item-3.item3 {
    height: 520px !important;
  }
}

/* Mobile (<= 767px): 1 column full width */
@media screen and (max-width: 767px) {
  #usluge .project_list-2,
  .project_list-2 {
    grid-template-columns: 1fr !important;
  }
  #usluge .project_item-3,
  .project_item-3,
  .project_item-3.item3 {
    height: 380px !important;
  }
}

/* Phone (<= 479px): 1 column full width */
@media screen and (max-width: 479px) {
  #usluge .project_list-2,
  .project_list-2 {
    grid-template-columns: 1fr !important;
    grid-row-gap: 1.25rem !important;
  }
  #usluge .project_item-3,
  .project_item-3,
  .project_item-3.item3 {
    height: 380px !important;
  }
}

/* Service card items */
#usluge .project_item-3,
.project_item-3,
.project_item-3.item3 {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0.75rem !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

/* Card images */
#usluge .project_item-3 .image-5,
.project_item-3 .image-5 {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
}

/* Card title link overlay */
#usluge .project_item-3 .link-8,
.project_item-3 .link-8 {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}

#usluge .project_item-3 .link-8::after,
.project_item-3 .link-8::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2000px;
}



