/* Excursions & Activities gallery
   Uses the site's existing CSS variables (defined in custom-modern.css,
   loaded on every page) so this block matches the rest of the site
   automatically. Falls back to sensible defaults if those variables are
   somehow unavailable. */

.wkeg-gallery {
    background: var(--c-bg, #f8f7f4);
    padding: 50px 0 60px;
    margin-top: 10px;
}

.wkeg-gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wkeg-gallery .title-container {
    margin-bottom: 30px;
}

.wkeg-gallery-header {
    font-family: var(--font-head, 'Poppins', Arial, sans-serif);
    color: var(--c-navy, #16213e);
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.wkeg-gallery-desc {
    color: var(--c-body, #5b6472);
    text-align: center;
    margin-bottom: 0;
}

.wkeg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .wkeg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .wkeg-grid { grid-template-columns: 1fr; }
}

.wkeg-tile {
    position: relative;
    margin: 0;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(28,36,48,.06));
    cursor: pointer;
    background: var(--c-card, #fff);
    border: 1px solid var(--c-border, #e7e4dd);
    transition: box-shadow .22s cubic-bezier(.22,.61,.36,1), transform .22s cubic-bezier(.22,.61,.36,1);
    aspect-ratio: 4 / 3;
}

.wkeg-tile:hover {
    box-shadow: var(--shadow-md, 0 10px 30px rgba(28,36,48,.10));
    transform: translateY(-3px);
}

.wkeg-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}

.wkeg-tile:hover img {
    transform: scale(1.06);
}

.wkeg-tile figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(22,33,62,0) 0%, rgba(22,33,62,.78) 100%);
    color: #fff;
}

.wkeg-tile-title {
    font-family: var(--font-head, 'Poppins', Arial, sans-serif);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .2px;
}

/* Lightbox */
.wkeg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 23, 40, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.wkeg-lightbox.wkeg-open {
    display: flex;
}

.wkeg-lightbox-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.wkeg-lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-lg, 0 20px 45px rgba(28,36,48,.16));
}

.wkeg-lightbox-caption {
    color: #fff;
    margin-top: 16px;
    font-family: var(--font-body, 'Inter', Arial, sans-serif);
    font-size: 15px;
}

.wkeg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
}

.wkeg-lightbox-close:hover {
    color: var(--c-gold, #c9a15a);
}
