@charset "UTF-8";

/* Base Gallery Section */
.base-gallery-section {
    width: 100%;
    padding: 50px 20px;
    background-color: #f7fafc;
    background-color: var(--bg-light);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.base-gallery-inner {
    padding: 3vh 0;
    border-top: 4px solid var(--accent-wood);
    max-width: 1100px;
    width: 100%;
}

.base-gallery-intro {
    margin: 0 0 3vh 0;
    font-size: 0.9rem;
    font-size: calc(0.8rem + 0.15vh);
    line-height: 1.6;
    color: #4a5568;
    color: var(--text-muted);
}

.base-photo-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -10px;
}

@supports (display: grid) {
    .base-photo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        margin: 0;
    }
}

.base-photo-card {
    margin: 10px;
    width: calc(50% - 20px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid #c07d34;
    border-bottom: 3px solid var(--accent-wood);
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

@supports (display: grid) {
    .base-photo-card {
        margin: 0;
        width: auto;
    }
}

.base-photo-card a {
    display: block;
    overflow: hidden;
    height: 190px;
    background-color: #edf2f7;
}

.base-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.base-photo-card img.focus-top {
    object-position: center 20%;
}

.base-photo-card a:hover img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

.base-photo-card figcaption {
    padding: 12px 14px;
    font-size: 0.8rem;
    color: #2d3748;
    color: var(--text-dark);
    font-weight: 600;
}

.base-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
}

.base-lightbox:target {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.base-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 34, 86, 0.88);
    cursor: pointer;
}

.base-lightbox-content {
    position: relative;
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    padding: 12px;
    border-bottom: 4px solid #c07d34;
    border-bottom: 4px solid var(--accent-wood);
    text-align: center;
}

.base-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    margin: 0 auto;
}

.base-lightbox-content p {
    margin: 12px 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #012256;
    color: var(--primary-navy);
}

.base-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 34px;
    height: 34px;
    background: #c07d34;
    background: var(--accent-wood);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
}
