@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
    font-family: 'Inter', sans-serif;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background: #ffffffd3;
}

.section-main {
    background: url("/assets/gallery/cda-gallery_comp.jpeg") center center / cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height:600px;
    display: flex;
    align-items: center;
    padding: 80px 24px;
}

.hero-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 5% ;}

.breadcrumb-gal {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px; text-decoration: none;
    color: #dbeafe; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px); font-size: 14px; line-height: 1;
}

.hero-title {
    margin: 18px 0 10px; font-size: clamp(28px, 5vw, 52px);
    font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #ffffff;
}

.hero-subtitle { margin: 0; font-size: 16px; color: #cfe5e8; }

.gallery-section {
    background: #f6f8f9;
    padding: 36px 24px 64px;
}

.gallery-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.gallery-divider {
    height: 3px;
    border: 0;
    background: rgb(0, 0, 0);
    width: 80%;
    margin: 0 auto 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    justify-items: center;
}

.gallery-item {
    margin: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    width: 100%;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    filter: brightness(0.48);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.lightbox.open { display: flex; }

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.lightbox-content { position: relative; display: inline-block; }
.lightbox-image { display: block; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    z-index: 2;
}
.lightbox-nav.prev { left: -50px; }
.lightbox-nav.next { right: -50px; }

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .section-main { padding: 64px 16px; min-height: 300px; }
    .breadcrumb { font-size: 13px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
}