/* Wrapper */
.td-wrap {
    --td-text: #2c3e50;
    --td-muted: #6c757d;
    --td-bg: #f8f9fa;
    --td-accent: #0d6efd;
    padding-inline: 16px;
    padding-bottom: 50px;
}

/* Hero Section */
.td-hero {
    background: url("../images/ThemeDinner/themedinnerhero.png") center/cover no-repeat;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    margin: 20px auto 40px;
    position: relative;
    color: #fff;
}

.td-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}

.td-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.td-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.td-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}

/* Gallery */
.td-gallery {
    margin-bottom: 50px;
}

.td-year {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--td-text);
    margin: 0 0 18px;
    text-align: center;
}

.td-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.td-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.td-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Responsive */
@media (max-width: 768px) {
    .td-title {
        font-size: 2rem;
    }

    .td-subtitle {
        font-size: 1rem;
    }

    .td-grid img {
        height: 180px;
    }
}


/* Year Heading */
.td-year {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--td-text);
    margin: 0;
    text-align: center;
}

/* Dinner Name */
.td-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--td-muted);
    margin: 6px 0 18px;
    text-align: center;
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}