/* -----------------------------------------------------
   GLOBAL LAYOUT
----------------------------------------------------- */

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex: 1;
}

html {
  scroll-behavior: auto !important;
}


/* -----------------------------------------------------
   NAVBAR
----------------------------------------------------- */

.navbar {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.85) !important;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-nav .nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  padding: 0.6rem 1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.instagram-icon {
  color: #E1306C;
}


/* -----------------------------------------------------
   IMAGE CONTAINER + IMAGE
----------------------------------------------------- */

.image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 80%;
  height: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-size 0.25s ease;
}

.main-image {
  display: block;
  width: calc(100% - 120px);
  height: 500px;
  object-fit: contain;
  border-radius: 5px;
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.main-image.loaded {
  opacity: 1;
}


/* -----------------------------------------------------
   ARROWS (BASE)
----------------------------------------------------- */

.arrow-btn {
  position: absolute;
  color: black;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  border-radius: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
}

.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

.arrow-btn:hover {
  background-color: white;
  color: black;
}


/* -----------------------------------------------------
   CLOSE BUTTON
----------------------------------------------------- */

.close-btn {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.6);
  color: #000;
  font-size: 28px;
  border: none;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 2000;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}


/* -----------------------------------------------------
   DESCRIPTION COLUMN
----------------------------------------------------- */

.description-container {
  padding-right: 60px;
  padding-top: 40px;
}

.description-container h2 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 1.5rem;
}

.description-container .meta {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1.5rem;
}

.description-container p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
  .description-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}


/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */

.site-footer {
  background: #fff;
  color: #111;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 40px 0;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.site-footer p:hover {
  opacity: 1;
}


/* -----------------------------------------------------
   TABLET LAYOUT (max-width: 768px)
----------------------------------------------------- */

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col-md-8,
  .col-md-4 {
    width: 100%;
    max-width: 100%;
  }

  .description-container {
    padding-right: 0;
    text-align: center;
    align-items: center;
  }
}


/* -----------------------------------------------------
   MOBILE LAYOUT (max-width: 576px)
   A2-small margins + native pinch-zoom
----------------------------------------------------- */

@media (max-width: 576px) {

  .image-container {
    height: auto;
    max-width: 100%;
    margin: 1rem auto;
    padding-top: 20px;
  }

  .main-image {
    width: calc(100% - 30px); /* A2-small margin */
    height: auto;
    margin: 0 auto;
    touch-action: pinch-zoom;
    cursor: default !important;
  }

  .arrow-btn {
    position: fixed;
    top: 50vh;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .left-arrow { left: 10px; }
  .right-arrow { right: 10px; }

  .close-btn {
    top: 75px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .arrow-btn {
    display: none !important;
  }

  .dot-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s ease;
  }

  .dot.active {
    background: #000;
  }
}

/* -----------------------------------------------------
   DESKTOP ZOOM (min-width: 577px)
----------------------------------------------------- */

@media (min-width: 577px) {

  .image-container {
    cursor: zoom-in;
  }

  .image-container.zoomed {
    background-size: 170%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: zoom-out;
  }

  .image-container.zoomed .arrow-btn {
    opacity: 0;
    pointer-events: none;
  }

  .main-image.zoomed {
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    position: absolute;
  }

  .left-arrow { left: 20px; }
  .right-arrow { right: 20px; }
}
