/* ---------------------------------------------------------
   ALBUM STYLE - Premium Photography Gallery
   --------------------------------------------------------- */

:root {
    --accent-color: #008b92;
    --bg-dark: #0a0a0a;
    --text-muted: #888;
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.top-bar {
    padding: 40px 5%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.album-titre {
    text-align: center;
    margin: 40px 0 100px 0;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: #fff;
    opacity: 0.9;
    mix-blend-mode: overlay;
    animation: revealTitle 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes revealTitle {
    0% {
        transform: translateY(100px);
        opacity: 0;
        filter: blur(20px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.gutenberg-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5% 150px 5%;
}

/* --- Masonry Layout --- */
.gallery-premium-masonry {
    column-count: 3;
    column-gap: 40px;
    animation: fadeInGallery 1s ease-out 0.5s backwards;
}

@keyframes fadeInGallery {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 40px;
    cursor: pointer;
    /* Custom cursor effect possible later */
    position: relative;
}

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: grayscale(20%) brightness(0.9);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0.3;
    transition: var(--transition-smooth);
    pointer-events: none;
}

/* --- Hover State --- */
.gallery-item:hover .gallery-item-inner {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1.1);
}

.gallery-item:hover .item-overlay {
    opacity: 0;
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 100px 0;
    color: var(--text-muted);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 9999;
}

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

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    transform: scale(0.95);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 50px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 200;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* --- Responsiveness --- */
@media (max-width: 1200px) {
    .gallery-premium-masonry {
        column-count: 2;
        column-gap: 30px;
    }

    .gallery-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .gallery-premium-masonry {
        column-count: 1;
    }

    .album-titre {
        margin-bottom: 60px;
    }

    .top-bar {
        padding: 20px 5%;
    }
}

/* Custom highlight for interactive feel */
.gallery-item::after {
    content: 'VOIR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 0.8;
}

/* --- Gutenberg Blocks Styling --- */
.gb-block {
    margin-bottom: 100px;
}

.gb-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out backwards;
}

.gb-text-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #bbb;
    text-align: center;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.gb-image-single {
    max-width: 1100px;
    margin: 0 auto;
    cursor: pointer;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.gb-image-single img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.gb-image-single:hover img {
    transform: scale(1.02);
}

.gb-caption {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gb-image-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    cursor: pointer;
    overflow: hidden;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gb-image-full img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    display: block;
    transition: transform 2s ease;
}

.gb-image-full:hover img {
    transform: scale(1.05);
}

.gb-image-duo {
    display: flex;
    gap: 40px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.duo-item {
    flex: 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.duo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.duo-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gb-image-duo {
        flex-direction: column;
    }

    .gb-image-full img {
        height: 60vh;
    }

    .gb-block {
        margin-bottom: 60px;
    }

    .gb-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }
}