/* Gallery Cards Exhibition Styles */
/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--moss-dark); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-glow); }

body {
    background-color: var(--moss-dark);
    color: var(--forest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section { position: relative; overflow: hidden; }
video { filter: brightness(0.65) contrast(1.15) saturate(0.85); object-fit: cover; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes gentle-breath {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}
.breathe-element { animation: gentle-breath 4s ease-in-out infinite; }

.gallery-card {
    position: relative;
    cursor: pointer;
    display: block;
    height: 480px; /* Adjust height to accommodate Polaroid chin and content */
}

/* Staggered card rotations for organic, scattered Polaroid look */
.gallery-card:nth-child(even) .gallery-card-inner {
    transform: rotate(1deg);
}
.gallery-card:nth-child(odd) .gallery-card-inner {
    transform: rotate(-1.2deg);
}
.gallery-card:nth-child(3n) .gallery-card-inner {
    transform: rotate(1.5deg);
}
.gallery-card:nth-child(3n+1) .gallery-card-inner {
    transform: rotate(-1.5deg);
}

.gallery-card-inner {
    background-color: #FFFFFF;
    padding: 16px 16px 72px 16px;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(12, 24, 17, 0.08), 0 3px 10px rgba(12, 24, 17, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(12, 24, 17, 0.06);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card:hover .gallery-card-inner {
    transform: translateY(-12px) rotate(0deg) scale(1.035);
    box-shadow: 0 28px 56px rgba(12, 24, 17, 0.18);
}

.gallery-card-img-wrap {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(12, 24, 17, 0.05);
    background-color: var(--abyss);
    position: relative;
}

.gallery-card-img-wrap img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover .gallery-card-img-wrap img { 
    transform: scale(1.06); 
}

.gallery-card-caption {
    margin-top: 16px;
    text-align: center;
    font-family: 'Kalam', cursive !important;
    font-weight: 300;
    font-size: 19px; 
    color: #1E293B; /* Fine-tip slate blue/black ink */
    letter-spacing: -0.015em; 
    line-height: 1.35;
    transform: rotate(-1.5deg); /* Handwritten natural slant */
    transition: transform 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-card-caption {
    transform: rotate(0deg); /* Straightens on hover with card */
}

/* ── SCROLL SNAP SLIDER UTILITIES ── */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

