/* ============================================================
   Gallery Page — public/assets/css/home/gallery.css
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.gal-hero {
    position: relative;
    background-color: #2c0605;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}
.gal-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(30, 4, 3, .92) 0%,
        rgba(45, 8, 5, .65) 45%,
        rgba(30, 4, 3, .30) 100%);
    pointer-events: none;
}
.gal-hero .container {
    position: relative;
    z-index: 2;
    width: min(1180px, 94%);
    margin: 0 auto;
}
.gal-hero .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 18px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    backdrop-filter: blur(6px);
}
.gal-hero .breadcrumb a {
    color: #ffb000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gal-hero .breadcrumb i { font-size: 10px; opacity: .75; }

.gal-eyebrow {
    display: inline-block;
    color: #ffb000;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.gal-title {
    font-family: "Noto Serif Bengali", serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.24;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}
.gal-title span { color: #ffb000; }
.gal-desc {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .92);
    margin: 0;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ============================================================
   SECTION
   ============================================================ */
.gal-section {
    padding: 50px 0 70px;
    background: #fff;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gal-item {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f3ece0;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.gal-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(54, 25, 20, .18);
}
.gal-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.gal-item:hover img { transform: scale(1.08); }

.gal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffb000;
    color: #3a1a00;
    display: grid;
    place-items: center;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transform: translateY(-8px);
    transition: transform .3s ease;
}
.gal-item:hover .gal-zoom { transform: translateY(0); }

.gal-overlay figcaption {
    color: #fff;
    text-align: left;
}
.gal-overlay figcaption b {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.25;
}
.gal-overlay figcaption small {
    display: block;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    line-height: 1.4;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.gal-empty {
    text-align: center;
    padding: 70px 20px;
    background: #faf7f0;
    border: 1px dashed #e0d8c4;
    border-radius: 16px;
}
.gal-empty i {
    font-size: 54px;
    color: #ddd;
    display: block;
    margin-bottom: 16px;
}
.gal-empty h3 {
    font-family: "Noto Serif Bengali", serif;
    font-size: 22px;
    margin: 0 0 8px;
    color: #1e2b29;
}
.gal-empty p {
    color: #888;
    font-size: 14px;
    margin: 0 0 18px;
}
.gal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffb000;
    color: #3a1a00;
    padding: 11px 22px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}
.gal-btn:hover {
    background: #f39b00;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 176, 0, .32);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 900px) {
    .gal-hero {
        min-height: 260px;
        padding: 30px 0;
        background-position: center;
    }
    .gal-hero:before {
        background: linear-gradient(180deg,
            rgba(35, 5, 3, .88) 0%,
            rgba(45, 8, 5, .78) 100%);
    }
    .gal-hero .breadcrumb { font-size: 11.5px; margin-bottom: 14px; padding: 5px 12px; }
    .gal-title { font-size: 24px; }
    .gal-desc { font-size: 14px; }

    .gal-section { padding: 30px 0 44px; }
    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gal-item { border-radius: 12px; }
    .gal-overlay { padding: 10px 12px; }
    .gal-zoom { width: 32px; height: 32px; font-size: 12px; top: 10px; right: 10px; }
    .gal-overlay figcaption b { font-size: 13px; }
    .gal-overlay figcaption small { font-size: 10.5px; }
}

@media (max-width: 480px) {
    .gal-title { font-size: 21px; }
    .gal-grid { gap: 8px; }
    .gal-zoom { width: 28px; height: 28px; font-size: 11px; top: 8px; right: 8px; }
    .gal-overlay { padding: 8px 10px; }
    .gal-overlay figcaption b { font-size: 12px; }
    .gal-overlay figcaption small { font-size: 10px; }
}

@media (max-width: 380px) {
    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}