/* ============================================================
   Student Buffet Page & Gallery Styling
   ============================================================ */

.student-buffet-shell {
    margin-top: 0.5rem;
}

.student-buffet-lead {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--s-muted, #4b5563);
    margin: 0 0 1.5rem 0;
    text-align: justify;
}

/* Key Info Cards */
.student-buffet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.buffet-info-card {
    background: linear-gradient(145deg, #ffffff, #fdf8fa);
    border: 1px solid rgba(133, 0, 62, 0.12);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.buffet-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(133, 0, 62, 0.08);
    border-color: rgba(133, 0, 62, 0.28);
}

.buffet-info-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(133, 0, 62, 0.08);
    color: #85003e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.buffet-info-card__icon svg {
    width: 22px;
    height: 22px;
}

.buffet-info-card__content {
    flex: 1;
    min-width: 0;
}

.buffet-info-card__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #85003e;
    margin-bottom: 0.25rem;
}

.buffet-info-card__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
}

/* Rich Prose */
.student-buffet-body {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 0;
    line-height: 2;
    color: #334155;
    font-size: 1.02rem;
}

.student-buffet-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Gallery Section */
.student-buffet-gallery {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(133, 0, 62, 0.12);
}

.student-buffet-gallery__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1216;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-buffet-gallery__title svg {
    color: #85003e;
    width: 24px;
    height: 24px;
}

.student-buffet-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.buffet-photo-card {
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(133, 0, 62, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.buffet-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(133, 0, 62, 0.12);
}

.buffet-photo-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.buffet-photo-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.buffet-photo-card:hover .buffet-photo-card__img-wrap img {
    transform: scale(1.05);
}

.buffet-photo-card__zoom {
    position: absolute;
    inset: 0;
    background: rgba(133, 0, 62, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.buffet-photo-card:hover .buffet-photo-card__zoom {
    opacity: 1;
}

.buffet-photo-card__caption {
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    text-align: center;
    background: #ffffff;
    line-height: 1.5;
}

/* Modal Lightbox */
.buffet-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.buffet-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.buffet-lightbox__dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buffet-lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.buffet-lightbox__caption {
    color: #ffffff;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.buffet-lightbox__close {
    position: absolute;
    top: -42px;
    left: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s ease;
}

.buffet-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.35);
}
