/* about.css - Styles for image track gallery with descriptions */

:root {
    --page-edge-spacing: 40px;
}

body {
    background-color: #cc0000;
    overflow: hidden;
    height: 100vh;
    cursor: none;
}

a, button, .gallery-card, .social-links a, .close-btn {
    cursor: none;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--page-edge-spacing) 60px;
    box-sizing: border-box;
}

.page-header {
    flex-shrink: 0;
    margin-bottom: 20px;

    @media (max-width: 768px) {
        & .home-btn {
            margin-left: auto;
            margin-right: auto;
        }
    }
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* =============================================================================
   DRAG ZONE - desktop only
   ============================================================================= */

.drag-zone {
    position: absolute;
    top: 0;
    left: -60px;
    right: -60px;
    bottom: -40px;
    cursor: none;
    overflow: hidden;
}

.drag-zone.dragging {
    cursor: none;
}

/* =============================================================================
   IMAGE TRACK - starts from left
   ============================================================================= */

#image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translate(0%, -50%);
    user-select: none;
}

.gallery-card {
    position: relative;
    width: 40vmin;
    height: 56vmin;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: none;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.gallery-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-card>.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
    pointer-events: none;
    transform: scale(1.15);
}

.card-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* =============================================================================
   EXPANDED VIEW OVERLAY
   ============================================================================= */

.expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.expanded-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.expanded-overlay .expanded-media {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
}

.expanded-overlay .expanded-description {
    margin-top: 20px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

.expanded-overlay .close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: none;
    opacity: 0.7;
    transition: opacity 200ms ease;
    background: none;
    border: none;
    font-family: inherit;
}

.expanded-overlay .close-btn:hover {
    opacity: 1;
}

/* =============================================================================
   MOBILE - NATIVE VERTICAL SCROLL
   ============================================================================= */

@media (hover: none),
(max-width: 768px) {
    :root {
        --page-edge-spacing: 30px;
    }

    body {
        overflow-y: auto;
        height: auto;
    }

    .page-container {
        height: auto;
        min-height: 100vh;
        padding: var(--page-edge-spacing) 20px;
    }

    .page-content {
        position: static;
    }

    .drag-zone {
        position: static;
        overflow: visible;
    }

    #image-track {
        position: static;
        flex-direction: column;
        align-items: center;
        transform: none;
        gap: 20px;
        padding: 20px 0;
    }

    .gallery-card {
        width: 80vw;
        height: auto;
        aspect-ratio: 3/4;
    }

    .gallery-card:hover {
        transform: none;
    }

    .gallery-card>.image {
        object-position: center center;
    }

    .card-description {
        white-space: normal;
        font-size: 14px;
        padding: 15px;
    }
}

/* =============================================================================
   SOCIAL LINKS FOOTER
   ============================================================================= */

.social-links {
    position: fixed;
    bottom: var(--page-edge-spacing);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    z-index: 100;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 200ms ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.social-links span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile social links - must come after main styles */
@media (hover: none),
(max-width: 768px) {
    .social-links {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        padding: 12px 20px;
        flex-wrap: wrap;
        margin-top: auto;
        gap: 16px;
    }
}