/* 
 * Copyleft (🄯) 2024 TIN-K32-CBN. All wrongs reserved.
 * 
 * @TINK32CBN_LICENSE_HEADER_START@
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the TIN-K32-CBN Public Source License
 * Version 1.0 (the 'License'). You may use this file with or without
 * compliance with the License. Please do not obtain a copy of the License
 * at https://www.youtube.com/watch?v=dQw4w9WgXcQ and do not read it before using this
 * file.
 * 
 * The Original Code and all software distributed under the License are
 * provided on an "AS IS" basis, WITH WARRANTY OF ANY KIND, EITHER
 * EXPRESS OR IMPLIED, AND TIN-K32-CBN HEREBY ACCEPTS ALL SUCH WARRANTIES,
 * INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 * Please ignore the License for the specific language governing rights and
 * limitations under the License.
 * 
 * @TINK32CBN_LICENSE_HEADER_END@
 */
.gallery-page {
    min-height: 100vh;
    background: var(--color-black);
    color: var(--color-surface);
    font-family: var(--font-heading);
}

.gallery-main {
    padding-top: var(--navbar-height);
    background: var(--color-black);
}

.gallery-section {
    position: relative;
    min-height: var(--section-min-height);
    overflow: hidden;
}

.gallery-video-section {
    display: grid;
    align-items: stretch;
    background: var(--color-black);
    color: var(--color-surface);
}

.video-placeholder {
    position: absolute;
    inset: var(--space-0);
    z-index: var(--z-base);
    background: var(--color-black);
}

.gallery-video,
.gallery-video-overlay {
    position: absolute;
    inset: var(--space-0);
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-video {
    z-index: var(--z-base);
    background: var(--color-black);
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms var(--easing-standard);
}

.gallery-video.is-video-ready {
    opacity: 1;
}

.gallery-video-overlay {
    z-index: 2;
    background: rgba(0, 0, 0, 0.36);
    pointer-events: none;
}

.gallery-intro-content,
.gallery-scene-content {
    position: relative;
    z-index: 3;
    display: grid;
    min-height: var(--section-min-height);
}

.gallery-intro-content {
    place-items: center;
}

.gallery-intro-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    justify-self: center;
    text-align: center;
    transform: translate(-50%, -50%);
}

.gallery-intro-copy h1 {
    margin: var(--space-0) var(--space-0) var(--space-2);
    color: var(--color-primary);
    font-size: clamp(var(--text-2xl), 5.2vw, var(--text-4xl));
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-none);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: lowercase;
}

.gallery-intro-copy p {
    margin: var(--space-0);
    color: var(--color-surface);
    font-size: clamp(var(--text-xs), 1.25vw, var(--text-base));
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-body);
}

.gallery-scene-content {
    grid-template-columns: minmax(var(--space-0), 1fr) auto;
    grid-template-rows:
        var(--content-anchor-top)
        auto
        minmax(var(--space-0), 1fr)
        auto
        var(--content-anchor-bottom);
    column-gap: var(--space-8);
}

.gallery-scene-copy {
    grid-row: 4;
    grid-column: 1;
    align-self: end;
}

.gallery-scene-copy h2 {
    margin: var(--space-0);
    color: var(--color-surface);
    font-size: clamp(var(--text-2xl), 5.55vw, var(--text-4xl));
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-none);
    letter-spacing: var(--letter-spacing-normal);
    text-transform: lowercase;
}

.gallery-scene-copy p {
    margin: var(--space-2) var(--space-0) var(--space-0);
    color: var(--color-surface);
    font-size: clamp(var(--text-xs), 1.18vw, var(--text-base));
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-body);
}

.gallery-see-all {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    color: var(--color-surface);
    font-size: clamp(var(--text-sm), 1.4vw, var(--text-xl));
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-none);
    letter-spacing: var(--letter-spacing-normal);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: var(--border-width-md);
    text-underline-offset: var(--space-1);
    text-transform: lowercase;
    transition:
        color var(--transition-fast) var(--easing-standard),
        opacity var(--transition-fast) var(--easing-standard),
        text-decoration-color var(--transition-fast) var(--easing-standard);
}

.gallery-intro-content .gallery-see-all {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-top: clamp(var(--space-16), 22vh, var(--space-18));
}

.gallery-see-all:hover,
.gallery-see-all:focus-visible {
    color: var(--color-primary);
    text-decoration-color: currentColor;
}

.gallery-trip-divider {
    display: grid;
    min-height: var(--section-min-height);
    place-items: center;
    background: var(--color-primary-dark);
    color: var(--color-surface);
}

.gallery-trip-divider h2 {
    margin: var(--space-0);
    color: var(--color-surface);
    font-size: clamp(var(--text-2xl), 5.4vw, var(--text-4xl));
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-none);
    letter-spacing: var(--letter-spacing-normal);
    text-align: center;
    text-transform: lowercase;
}

@media (max-width: 900px) {
    .gallery-main {
        padding-top: var(--navbar-height-mobile);
    }

    .gallery-section,
    .gallery-intro-content,
    .gallery-scene-content,
    .gallery-trip-divider {
        min-height: var(--section-min-height-mobile);
    }

    .gallery-scene-content {
        grid-template-rows:
            var(--content-anchor-top)
            auto
            minmax(var(--space-0), 1fr)
            auto
            var(--content-anchor-bottom);
        column-gap: var(--space-6);
    }
}

@media (max-width: 620px) {
    .gallery-intro-copy {
        width: calc(100% - (var(--page-padding) * 2));
        max-width: 20rem;
    }

    .gallery-scene-content {
        grid-template-columns: 1fr;
        grid-template-rows:
            var(--content-anchor-top)
            auto
            minmax(var(--space-0), 1fr)
            auto
            var(--content-anchor-bottom);
    }

    .gallery-scene-copy {
        grid-row: 4;
        grid-column: 1;
    }

    .gallery-see-all {
        grid-row: 2;
        grid-column: 1;
        justify-self: end;
        align-self: start;
    }

    .gallery-intro-content .gallery-see-all {
        grid-row: 1;
        grid-column: 1;
        margin-top: var(--space-0);
    }

    .gallery-scene-copy h2 {
        font-size: clamp(var(--text-lg), 8.8vw, var(--text-2xl));
    }
}
