@charset "utf-8";

/*
    Gus & Luz Gallery Stylesheet
    Author: Jose Sanchez
    Date: 2/11/2026

    Filename: gl_styles6.css
    Shared rules (reset, nav, logo, footer, language toggle, animations)
    live in gl_base.css — this file only holds gallery-page-specific styling.
*/

/* Font Styles */
.corinthia-regular {
    font-family: var(--font-script);
    font-weight: 400;
    font-style: normal;
}

.corinthia-bold {
    font-family: var(--font-script);
    font-weight: 700;
    font-style: normal;
}

/* Slide-in groupings specific to this page */
.intro {
    opacity: 0;
    transform: translateX(40px);
    animation: slideIn 1.1s ease forwards;
}

.title {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideIn 1.1s ease forwards;
}

/* Title Styles */
.title {
    text-align: center;
    padding: 0 10px;
}

.title h1 {
    font-size: 1.9rem;
}

/* Intro Styles */
.intro {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8rem;
}

.intro p {
    margin: 0 34px;
    padding: 0;
    color: var(--color-ink-soft);
}

/* Gallery Grid Styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    gap: 12px;
    width: 92%;
    margin: 36px auto 0;
    padding-top: 34px;
    border-top: 1px solid var(--color-accent-active);
}

.image-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: block;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease;
}

.image-grid img:active {
    transform: scale(0.97);
}

.image-grid img.fade-in {
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 22, 0.9);
    z-index: 1000;
    flex-direction: column;
}

#lightbox.active {
    display: flex;
}

/* Stage: the image gets whatever space is left after the controls row
   below claims its height, so the two areas can never overlap. */
.lb-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

#lightbox img {
    display: block;
    margin: auto;
    max-width: 95%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    user-select: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    touch-action: none;
    transform-origin: center center;
    will-change: transform;
}

/* Lightbox Close Button */
#lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(211, 211, 211, 0.35);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Controls row: reserves its own height below the stage, so the
   arrows/counter never sit on top of the image in any browser. */
.lb-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

/* Arrow Buttons */
.lb-arrow {
    z-index: 2;
    color: #fff;
    background: rgba(211, 211, 211, 0.35);
    border: none;
    border-radius: 6px;
    width: 70px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Image Counter */
#lb-counter {
    flex: 0 0 auto;
    min-width: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

footer {
    margin-top: 30px;
}
