/* ===== Media gallery (see js/gallery.js) ===== */
.media-intro {
    max-width: 700px;
    margin: 10px auto 0;
}

/* Tabs: same look as the old gallery filter, centered and wrapping on small screens */
.media-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0 0 25px;
    padding: 0;
}
.media-tabs li a {
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 1px;
}
.media-tabs .media-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 3px;
}

/* Photo grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.media-grid.media-grid-videos {
    grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 991px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media screen and (max-width: 576px) {
    .media-grid.media-grid-videos {
        grid-template-columns: 1fr;
    }
}

.media-item {
    display: block;
    cursor: pointer;
}
.media-item .gallery-img {
    aspect-ratio: 3 / 4;
    background: #F6F1F0;
}
.media-item .gallery-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.3s cubic-bezier(0.3, 0.1, 0.58, 1);
}
.media-item.is-loaded .gallery-img > img {
    opacity: 1;
}

/* Video cards */
.media-video .gallery-img {
    aspect-ratio: 16 / 9;
}
.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    background: rgba(189, 148, 90, 0.9);
    color: #fff;
    font-size: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}
.media-video:hover .media-play {
    transform: scale(1.1);
}
.media-video-caption {
    text-align: center;
    padding-top: 15px;
}
.media-video-sub {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
}
.media-video-caption h4 {
    font-family: 'Alex Brush', cursive;
    font-size: 32px;
    color: #BD945A;
    margin: 0;
}

/* "See more" button and counter */
.media-more {
    margin-top: 35px;
}
.media-status {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}
.media-load-more {
    background: #BD945A;
    color: #fff;
    border: none;
    padding: 12px 35px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.media-load-more:hover {
    background: #A67D45;
}
