﻿@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css2?family=McLaren&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka');

:root {
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --accent-color: #2980b9;

    --divider-color-light: rgba(255, 255, 255, 0.15); /* Subtle white line */
    --divider-color-dark: rgba(0, 0, 0, 0.15); /* Subtle black line */

    --divider-thickness: 1px; /* Thickness of line */
}

.divider {
    border: none; /* Removes default browser style */
    height: var(--divider-thickness);

    background-color: var(--divider-color-dark);
}

.divider-social-icons {
    width: 120px; /* Length of line */
    margin: 20px auto; /* Space above & below the line; 0 for left & right */
}

.divider.divider-social-icons {
    background-color: var(--divider-color-light);
}

.divider-text-body {
    width: 500px; /* Length of line */
    margin: 60px auto 20px; /* Space above & below the line; 0 for left & right */
}

.divider-home-page {
    width: 680px; /* Length of line */
    margin: 60px auto 54px; /* Space above & below the line; 0 for left & right */
}



/* MEDIA GALLERY */
.portfolio-gallery {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 25px 0 20px;
}

/* The Row Container */
.gallery-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

/* Individual Content Cell */
.gallery-item {
    flex: 1 1 0%; /* Forces all items in a row to divide width perfectly equally */
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0d1117;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Enforces uniform horizontal height alignment across cells in the same row */
    aspect-ratio: 16 / 9;
}

    .gallery-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    /* Thumbnail Images/Gifs Scaling Constraint */
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Crops texture safely without stretching aspect ratios */
        display: block;
    }

/* Optional Caption Overlay System */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 40%);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 20px 12px 10px 12px;
    text-align: center;
    pointer-events: none; /* Mouse clicks bypass text entirely and trigger the item expansion */
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}


/* LIGHTBOX OVERLAY SYSTEM MODAL */
.lightbox-modal {
    display: none; /* Default Hidden */
    position: fixed;
    z-index: 99999; /* Higher than everything else on page */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 20, 0.95);
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Content Container Wrapper */
.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 85%;
    max-height: 85%;
}

/* Expanded Image Box Styling */
.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Lightbox Subtext Display */
.lightbox-modal-caption {
    color: #e1e7ed;
    margin-top: 14px;
    font-size: 1.05rem;
    text-align: center;
}

/* Control Navigation Buttons */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 22px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, transform 0.1s;
    z-index: 100002;
    /* Ensures button renders as a circle, and is not stretched */
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .lightbox-arrow:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .lightbox-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

.arrow-left {
    left: 4%;
}

.arrow-right {
    right: 4%;
}

/* Exit Action Button Toggle */
.lightbox-close {
    position: absolute;
    top: 3%;
    right: 4%;
    color: #8892b0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 100002;
}

    .lightbox-close:hover {
        color: white;
    }


/* Media Showcase Container */
.media-placeholder {
    background-color: #000;
    color: #fff;
    width: 70%;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    border-radius: 6px;
}



.portfolio-video-wrapper {
    position: relative;
    width: 70%;
    aspect-ratio: 16 / 9;
    margin: 40px auto; /* horizontal center */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--box-shadow); /* Seamlessly inherits your global layout shadow! */
}

    /* Force child iframe player layer to expand cleanly inside container */
    .portfolio-video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Tweet Embed */
.portfolio-tweet-wrapper {
    /* Uses flex centering to wrap around the dynamic card size */
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 40px auto;
}

    /* append !important to force the platform's injected layout card to stay centered */
    .portfolio-tweet-wrapper .twitter-tweet {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }