/* ========================
   CSS RESET & BASE STYLES
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #d4a574;
    --text-dark: #2c2c2c;
    --text-light: #6c6c6c;
    --white: #ffffff;
    --gradient-overlay: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(212, 165, 116, 0.4));
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: rgba(148, 178, 185, 0.295);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================
   NAVIGATION BAR
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(5, 94, 127);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================
   HERO SLIDESHOW
   ======================== */
.hero {
    margin-top: 80px;
    height: calc(100vh - 80px);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}








.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeIn 1.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(212, 165, 116, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 40px;
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s ease-out 0.3s both;
}

.slide-description {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    animation: slideUp 1s ease-out 0.6s both;
}

.dots-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover,
.dot.active {
    background: var(--white);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* ========================
   SECTION COMMON STYLES
   ======================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ========================
   ABOUT SECTION
   ======================== */
.about {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    align-items: center;
}

.about-intro {
    font-size: 1.3rem !important;
    font-weight: 500;
    color: var(--primary-color);
}



/* ========================
   FEATURED GALLERY
   ======================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 350px;
    cursor: pointer;
}

.featured-item.large {
    grid-column: span 2;
    height: 450px;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-item:hover img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.featured-item:hover .featured-overlay {
    transform: translateY(0);
    opacity: 1;
}

.featured-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.featured-overlay p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}


/* ========================
   COLLECTIONS SECTION
   ======================== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.collection-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.collection-image {
    width: 100%;
    height: 100%;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.1);
}

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px 30px;
    color: var(--white);
}

.collection-content h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.collection-content p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.collection-arrow {
    position: absolute;
    top: -50px;
    right: 30px;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .collection-arrow {
    opacity: 1;
    top: 30px;
}




/* ========================
   FOOTER
   ======================== */
.footer {
    background: #0f0f0f;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.footer-social a {
    color: #fff;
    font-size: 22px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}


.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .slide-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1.2rem;
    }

    .featured-item.large {
        grid-column: span 1;
        height: 350px;
    }

    .top-works-grid,
    .collections-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .container,
    .nav-container {
        padding: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .about-stats {
        flex-direction: column;
    }

    .featured-grid,
    .top-works-grid,
    .collections-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .work-card,
    .collection-card {
        border-radius: 15px;
    }
}






/* Beautiful Lightbox */
.beautiful-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
}

.beautiful-lightbox.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Top Bar */
.lb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    z-index: 10;
}

.lb-counter {
    color: #d4a574;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(212, 165, 116, 0.15);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(10px);
}

.lb-controls {
    display: flex;
    gap: 12px;
}

.lb-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-btn:hover {
    background: #d4a574;
    border-color: #d4a574;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

#closeBtn:hover {
    background: #ff4444;
    border-color: #ff4444;
    transform: rotate(90deg) scale(1.1);
}

/* Navigation Arrows */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.lb-prev {
    left: 30px;
}

.lb-next {
    right: 30px;
}

.lb-nav:hover {
    background: #d4a574;
    border-color: #d4a574;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 35px rgba(212, 165, 116, 0.5);
}

/* Image Container */
.lb-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
}

.lb-image.zoomed {
    cursor: move;
}

/* Info Panel */
.lb-info-panel {
    position: absolute;
    right: -400px;
    top: 100px;
    width: 350px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    padding: 35px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 15px 60px rgba(0, 0, 0, 0.6);
}

.lb-info-panel.show {
    right: 30px;
}

.info-art-name {
    color: #d4a574;
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.info-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    font-style: italic;
}

.info-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Zoom Indicator */
.lb-zoom-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 165, 116, 0.15);
    backdrop-filter: blur(10px);
    color: #d4a574;
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lb-zoom-indicator.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .lb-topbar {
        padding: 20px 25px;
    }

    .lb-nav {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }

    .lb-prev {
        left: 20px;
    }

    .lb-next {
        right: 20px;
    }

    .lb-info-panel {
        width: 300px;
        padding: 25px;
    }

    .info-art-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lb-topbar {
        padding: 15px 20px;
    }

    .lb-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .lb-counter {
        font-size: 0.95rem;
        padding: 8px 18px;
    }

    .lb-nav {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .lb-prev {
        left: 15px;
    }

    .lb-next {
        right: 15px;
    }

    .lb-info-panel {
        width: calc(100% - 40px);
        right: -100%;
        top: auto;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        max-height: 60vh;
        overflow-y: auto;
    }

    .lb-info-panel.show {
        right: 0;
        bottom: 0;
    }

    .info-art-name {
        font-size: 1.4rem;
    }

    .info-artist {
        font-size: 1rem;
    }

    .info-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lb-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }
}

/* Cursor for clickable images */
.featured-item img,
.work-image img,
.gallery-item img,
.slide img {
    cursor: pointer;
}





/* Gallery item sizing to handle variable image sizes */
#galleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02));
}

.gallery-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.2, .9, .2, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.06) rotate(var(--r, 0deg));
}

.gallery-item-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.6));
    color: #fff;
    transform: translateY(10%);
    opacity: 0;
    transition: all .25s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Slight random tilt for variety (CSS var can be set inline if desired) */
.gallery-item {
    --r: 0deg;
}

.gallery-item:nth-child(6n+1) {
    --r: -1deg;
}

.gallery-item:nth-child(6n+3) {
    --r: 1deg;
}

/* Lightbox active class */
.beautiful-lightbox.active {
    display: block;
}

/* small polish: close button */
.lb-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}


/* ======================================
   FIX — Better topbar layout & scroll info panel
   ====================================== */

/* --- Lightbox styles (index-like overrides placed in abstract.css) --- */

/* container */
.beautiful-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
}

/* active state (script.js toggles .active) */
.beautiful-lightbox.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* topbar */
.lb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
    z-index: 10;
}

.lb-counter {
    color: #d4a574;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(212, 165, 116, 0.08);
}

/* controls */
.lb-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lb-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.lb-btn:hover {
    transform: translateY(-3px);
    background: rgba(212, 165, 116, 0.12);
}

/* nav arrows */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border: 0;
    color: #fff;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.lb-prev {
    left: 26px;
}

.lb-next {
    right: 26px;
}

.lb-nav:hover {
    background: rgba(212, 165, 116, 0.12);
    transform: translateY(-50%) scale(1.08);
}

/* image wrapper */
.lb-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    transition: transform 0.25s ease;
    cursor: grab;
    user-select: none;
}

/* info panel (desktop slide-in) */
.lb-info-panel {
    position: absolute;
    right: -380px;
    top: 100px;
    width: 350px;
    max-height: 75vh;
    overflow: auto;
    background: rgba(26, 26, 26, 0.98);
    padding: 24px;
    border-radius: 16px;
    transition: right 0.35s ease;
    box-shadow: -12px 12px 50px rgba(0, 0, 0, 0.6);
}

.lb-info-panel.show {
    right: 30px;
}

.info-art-name {
    color: #d4a574;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.info-artist {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    font-style: italic;
}

/* zoom indicator */
.lb-zoom-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(212, 165, 116, 0.12);
    color: #d4a574;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s;
}

.lb-zoom-indicator.show {
    opacity: 1;
}


/* Mobile: hide info panel by default and shrink image when info opens */
@media (max-width: 768px) {

    /* Put info panel off-screen bottom by default */
    .lb-info-panel {
        right: 0;
        left: 0;
        bottom: -100%;
        top: auto;
        width: 100%;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform .33s ease, bottom .33s ease;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        padding: 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* When info is shown, slide it up */
    .lb-info-panel.show {
        transform: translateY(0);
        bottom: 0;
    }

    /* Reduce image area when info is open */
    .beautiful-lightbox.info-open .lb-image-wrapper {
        max-height: 38vh;
        /* image shrinks to leave room for info */
    }

    /* Normal image max on mobile */
    .beautiful-lightbox .lb-image-wrapper {
        max-height: 75vh;
        transition: max-height .33s ease;
    }

    /* Move topbar controls slightly down so they don't overlap with safe-area notch */
    .lb-topbar {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    /* make close button smaller and not overlapping */
    #closeBtn,
    .lb-close {
        width: 44px;
        height: 44px;
        right: 14px;
        top: 14px;
    }
}


/* responsive tweaks */
@media (max-width: 968px) {
    .lb-topbar {
        padding: 14px 18px;
    }

    .lb-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .lb-nav {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }

    .lb-prev {
        left: 12px;
    }

    .lb-next {
        right: 12px;
    }

    .lb-info-panel {
        width: 320px;
        right: -320px;
        top: auto;
        bottom: 0;
        border-radius: 16px 16px 0 0;
        max-height: 55vh;
        overflow: auto;
    }

    .lb-info-panel.show {
        right: 0;
    }
}

@media (max-width: 768px) {
    .lb-image {
        max-height: 70vh;
    }

    .lb-info-panel {
        width: 100%;
        right: -100%;
        bottom: 0;
        max-height: 60vh;
        padding: 18px;
    }

    .lb-info-panel.show {
        right: 0;
    }

    .lb-zoom-indicator {
        bottom: 12px;
        font-size: 0.85rem;
    }
}






/* --- MOBILE FIXES FOR LIGHTBOX --- */
@media (max-width: 768px) {
    .beautiful-lightbox {
        padding: 0;
    }

    .lb-topbar {
        padding: 12px 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .lb-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lb-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }

    .lb-info-panel {
        width: 100%;
        right: 0;
        bottom: 0;
        top: auto;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        background: rgba(26, 26, 26, 0.97);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        padding: 25px 20px;
    }

    .info-art-name {
        font-size: 1.4rem;
    }

    .info-artist {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .info-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .lb-zoom-indicator {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 8px 18px;
    }
}



/* avoid topbar / close overlap: push lb-close below topbar */
.lb-close {
    top: 74px !important;
    right: 18px !important;
    z-index: 11;
}

/* ensure topbar controls remain visible above close */
.lb-topbar {
    z-index: 12;
}

/* allow pointer events and natural scrolling in info panel */
.lb-info-panel {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}