/* Day tabs */
.gallery-day-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 4px;
}
.gallery-day-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 20px;
    font-family: 'kittithada';
    font-size: 2rem;
    transition: color 0.2s, border-color 0.2s;
}
.gallery-day-tabs .nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(212, 164, 71, 0.5);
}
.gallery-day-tabs .nav-link.active {
    color: var(--jazz-gold);
    background: transparent;
    border-bottom-color: var(--jazz-gold);
}

/* Album card */
.album-card {
    cursor: pointer;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--jazz-night);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.album-card-cover {
    position: relative;
    padding-top: 66.66%;
}
.album-card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.album-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    pointer-events: none;
}
.album-count {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
}
.album-card-name {
    padding: 8px 12px 10px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.35;
}

/* Gallery title font */
.gallery-title {
    font-family: 'Sukhumvit Set', 'Sukhumvit', sans-serif;
}

/* Album page */
.album-page-header {
    text-align: center;
}
.album-back-btn {
    display: inline-block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}
.album-back-btn:hover {
    color: var(--jazz-gold);
}
.album-page-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin: 0;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
}
.album-thumb-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}
.album-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.album-thumb-wrap:hover .album-thumb {
    transform: scale(1.05);
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox.active {
    display: flex;
}
.gallery-lightbox #lbImg {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    display: block;
}
.lb-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}
.lb-btn:hover {
    color: #fff;
}
.lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.2rem;
    padding: 4px 8px;
}
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 16px 20px;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    pointer-events: none;
}
