/* ============ GALLERY PAGE SPECIFIC STYLES ============ */

.gallery-container {
    transform-style: preserve-3d;
    perspective: 1000px;
    padding-top: 128px;
    padding-bottom: 80px;
    background-color: #fffaf5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    transform-style: preserve-3d;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
}

.gallery-img-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transform: translateZ(0);
}

.gallery-img-container.shape-square {
    aspect-ratio: 1 / 1;
    transition: aspect-ratio 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img-container.shape-vertical {
    aspect-ratio: 2 / 3;
}

.gallery-img-container.shape-horizontal {
    aspect-ratio: 4 / 3;
}

.gallery-img-container.shape-square:hover {
    aspect-ratio: 2 / 3;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-img-container:hover .gallery-img {
    filter: brightness(1.1);
    transform: scale(1.04);
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26, 64, 49, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#lightbox.open #lightbox-img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    cursor: pointer;
    font-size: 32px;
    z-index: 10001;
}

/* Custom Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery-header h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.gallery-header p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-gold);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-img {
        transition: none !important;
    }
    .gallery-img:hover {
        transform: none !important;
    }
    #lightbox {
        transition: none !important;
    }
    #lightbox-img {
        transform: none !important;
        transition: none !important;
    }
    #lightbox.open #lightbox-img {
        transform: none !important;
    }
}

/* === EVARAGOLD PREMIUM PROGRESS SPINNER === */
.evara-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  width: 100%;
  animation: fadeIn 0.4s ease forwards;
}

.evara-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(182, 163, 152, 0.15);
  border-radius: 50%;
  border-top-color: #B6A398;
  animation: evara-spin 1s cubic-bezier(0.55, 0.25, 0.25, 0.85) infinite;
}

.evara-spinner-text {
  margin-top: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8A7E77;
  font-weight: 500;
}

@keyframes evara-spin {
  to {
    transform: rotate(360deg);
  }
}

