/* ---------------------------------------------------------
   Gallery & Lightbox Styles
   --------------------------------------------------------- */

.gallery-page {
    --ic-gold: #F3B41A;
    --ic-gold-dark: #B5840D;
    --ic-black: #111111;
    --ic-muted: #6B6B6B;
    --ic-soft: #F9F8F5;
    --ic-border: #EAE6DD;
    overflow: hidden;
    color: var(--ic-black);
    background: #fff;
}

.gallery-page a {
    text-decoration: none;
}

/* Album Card */
.gallery-album-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ic-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-album-card:hover {
    transform: translateY(-4px);
    border-color: var(--ic-gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.gallery-album-cover {
    position: relative;
    height: 250px;
    background: #1a1a1a;
    overflow: hidden;
}

.gallery-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-album-card:hover .gallery-album-cover img {
    transform: scale(1.06);
}

.gallery-album-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 4px 10px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(243, 180, 26, 0.4);
    border-radius: 4px;
    color: var(--ic-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-album-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-album-body h3 {
    font-family: var(--ic-heading-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--ic-black);
}

.gallery-album-body p {
    color: var(--ic-muted);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

.gallery-album-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8A6508;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease, gap 0.2s ease;
}

.gallery-album-card:hover .gallery-album-link {
    color: #000;
    gap: 9px;
}

/* Album Photos Grid (Show View) */
.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lightbox-trigger-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--ic-border);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.lightbox-trigger-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.lightbox-trigger-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.9);
}

.lightbox-trigger-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}

.lightbox-trigger-item:hover .lightbox-trigger-overlay {
    opacity: 1;
}

.lightbox-zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(243, 180, 26, 0.95);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.lightbox-caption-preview {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Lightbox Modal & Slide Carousel */
.ic-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ic-lightbox-backdrop.active {
    display: flex;
    opacity: 1;
}

.ic-lightbox-container {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ic-lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic-lightbox-stage img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    user-select: none;
}

.ic-lightbox-info {
    margin-top: 16px;
    text-align: center;
    max-width: 780px;
}

.ic-lightbox-caption {
    color: #F1F1F1;
    font-size: 14.5px;
    margin: 0 0 6px;
    line-height: 1.5;
}

.ic-lightbox-counter {
    color: var(--ic-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ic-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ic-lightbox-close:hover {
    color: var(--ic-gold);
    transform: scale(1.1);
}

.ic-lightbox-prev,
.ic-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.ic-lightbox-prev {
    left: -70px;
}

.ic-lightbox-next {
    right: -70px;
}

.ic-lightbox-prev:hover,
.ic-lightbox-next:hover {
    background: var(--ic-gold);
    color: #111;
    border-color: var(--ic-gold);
}

@media (max-width: 991.98px) {
    .ic-lightbox-prev {
        left: 10px;
    }
    .ic-lightbox-next {
        right: 10px;
    }
    .ic-lightbox-close {
        top: -40px;
        right: 10px;
    }
}
