* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Inter", sans-serif;
  background: #E1C485;
  color: #fff;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  max-height: none;
}

/* HEADER */
.site-header {
  background: #E1C485;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}

.main-nav a:not(.btn-primary) {
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:not(.btn-primary):hover {
  transform: translateY(-1px);
}

.main-nav a:not(.btn-primary):hover::after {
  transform: scaleX(1);
}

.main-nav a:not(.btn-primary):active {
  transform: translateY(0);
  opacity: 0.7;
}

.logo img {
  height: 40px;
}

/* MAIN GRID */
.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
  padding-bottom: 40px;
}

/* LEFT PANEL */
.left-panel {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 1vw;
}

/* FOLDER VIEW */
.folder-view {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: auto;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#folderImage {
  width: auto;
  height: 90vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

/* HOVER ZONE */
.zone {
  position: absolute;
  left: 0;
  width: 100%;
  height: 25%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.z1 { top: 0; }
.z2 { top: 25%; }
.z3 { top: 50%; }
.z4 { top: 75%; }

/* RIGHT PANEL */
.right-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centriramo wrapper i progress */
  justify-content: center;
  padding: 20px;
}

/* GALLERY WRAPPER */
.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4/3;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.gallery-wrapper img,
.gallery-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-wrapper img.active,
.gallery-wrapper video.active {
  opacity: 1;
}

/* PROGRESS */
.progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.progress span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s ease;
}

.progress span.active {
  background: #fff;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.25);
  padding: 24px 0;
}

/* MOBILE */
@media (max-width: 900px) {

  /* dozvoli prirodnu visinu stranice */
  body {
    overflow-x: hidden;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 130vh;
  }

  .right-panel {
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0 0;
  }

  /* SLIDESHOW */
  .gallery-wrapper {
    width: 100%;
    max-width: 80%;        /* ~20% manje */
    height: auto;
    max-height: none;
    overflow: visible;
    position: relative;
  }

  .gallery-wrapper img,
  .gallery-wrapper video {
    position: relative;   /* NIKAKO absolute */
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    opacity: 1;
    display: block;
  }

  /* DOTS – vezani za slideshow */
  .progress {
    position: relative;
    margin-top: 55%;    /* spušta ispod slideshow-a */
    margin-bottom: 32px; /* razmak do footer-a */
    display: flex;
    justify-content: center;
  }

  /* LEVA SLIKA */
  #folderImage {
    width: 90%;
    height: auto;
    max-height: 80vh;
  }

  .folder-view {
    height: auto;
    max-height: none;
  }

  /* FOOTER – uvek ispod svega */
  .site-footer {
    position: relative;
    margin-top: 10px;
  }
}