.album-wrapper {
    margin-block-end: 2rem;
    position: relative;
    width: 100%;
}

.album-wrapper .content-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 3rem;
}

.album-wrapper img.nerd-inner-logo {
    flex: 1 0 30%;
    margin-block-end: 1rem;
    margin-inline-end: 3rem;
    max-width: 200px;
    width: 100%;
}

.album-wrapper .title-wrapper {
    flex: 1 0 60%;
}

.album-wrapper h1 {
    color: var(--nerd-green);
    font-size: 5rem;
}

.album-wrapper h1 span {
    color: var(--nerd-mustard);
}

.album-wrapper h2 {
    color: white;
    font-size: 2.4rem;
    line-height: 1.2;
    max-width: 60ch;
    margin: 1rem 0 0;
    word-break: break-word;
    -webkit-text-stroke: 0;
}

.album-wrapper h2 span {
    color: var(--nerd-mustard);
}

.cinta-inner {
    min-height: 30px;
    object-fit: cover;
    object-position: left center;
    position: absolute;
    right: 0;
    bottom: -2rem;
    left: 20px;
    width: calc(100% - 20px);
    z-index: 2;
}

.album-gallery {
    background-color: var(--nerd-green);
    min-height: 50vh;
    padding: 3rem clamp(2rem, 10vw, 5rem);
    position: relative;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin: 0 auto;
    max-width: 1400px;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.gallery-thumbnail {
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.gallery-thumbnail.loaded {
    opacity: 1;
}

.loading-spinner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    animation: spin 1s linear infinite;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--nerd-yellow);
    height: 50px;
    width: 50px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-block: 3rem;
}

.no-photos-message {
    color: white;
    font-size: 1.5rem;
    padding: 3rem;
    text-align: center;
}

/* Lightbox Styles */
.lightbox-modal {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 9999;
}

.lightbox-content {
    max-height: 90vh;
    max-width: 90vw;
    position: relative;
}

.lightbox-image-container {
    position: relative;
}

.lightbox-loading {
    align-items: center;
    display: flex;
    height: 90vh;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 90vw;
}

.lightbox-image {
    display: block;
    height: auto;
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 3rem;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--nerd-yellow);
}

.lightbox-nav {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s;
    z-index: 10000;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 0.5rem;
    bottom: 70px;
    color: white;
    font-size: 1.2rem;
    left: 50%;
    padding: 0.5rem 1rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 10001;
}

/* Share buttons - FIXED to viewport bottom */
.lightbox-share {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 0.5rem;
    bottom: 10px;
    display: flex;
    gap: 0.5rem;
    left: 50%;
    padding: 0.5rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 10001;
}

.share-btn {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    width: 40px;
}

.share-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: var(--nerd-yellow);
    transform: scale(1.1);
}

.share-btn svg {
    height: 20px;
    width: 20px;
}

.share-twitter:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

.share-whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
}

.share-native:hover {
    background-color: var(--nerd-blue);
    border-color: var(--nerd-blue);
}

.share-copy:hover {
    background-color: var(--nerd-mustard);
    border-color: var(--nerd-mustard);
    color: var(--nerd-black);
}

/* Copy toast notification */
.copy-toast {
    background-color: var(--nerd-green);
    border-radius: 0.5rem;
    bottom: 80px;
    color: var(--nerd-black);
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-weight: bold;
    left: 50%;
    opacity: 0;
    padding: 1rem 2rem;
    position: fixed;
    transform: translateX(-50%) translateY(100px);
    transition: all 0.3s ease;
    z-index: 10002;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media screen and (max-width: 56.24em) {
    .album-wrapper {
        margin-block-start: 7rem;
    }

    .album-wrapper h1 {
        font-size: 3.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lightbox-close {
        right: 10px;
        top: 10px;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-share {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .share-btn {
        height: 35px;
        width: 35px;
    }

    .share-btn svg {
        height: 18px;
        width: 18px;
    }

    .lightbox-counter {
        bottom: 60px;
    }

    .nerd-inner-logo {
        display: none;
    }
}

@media screen and (max-width: 40em) {

    .album-wrapper img.responsive-image,
    .album-wrapper .title-wrapper {
        flex: 1 0 100%;
    }

    .album-wrapper img.nerd-inner-logo {
        margin-block-end: 1rem;
        max-width: 120px;
        order: -1;
    }

    .album-wrapper h1 {
        font-size: 2.8rem;
    }

    .album-wrapper h2 {
        font-size: 2rem;
        margin: 2rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .lightbox-share {
        width: auto;
        max-width: 90vw;
    }

    .copy-toast {
        bottom: 70px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}