/* Public photo gallery */
.gallery-group-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    background: var(--whiteColor, #fff);
    box-shadow: 0 8px 30px rgba(0, 13, 68, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 30px;
}

.gallery-group-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 13, 68, 0.14);
    color: inherit;
}

.gallery-group-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #eef1f6;
}

.gallery-group-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-group-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 15px;
    background: linear-gradient(135deg, #eef1f6 0%, #dfe6ef 100%);
}

.gallery-group-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 13, 68, 0.82) 100%);
}

.gallery-group-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.gallery-tile {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 13, 68, 0.08);
    transition: transform 0.2s ease;
}

.gallery-tile:hover {
    transform: scale(1.02);
}

.gallery-tile img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    border: none;
    background: transparent;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
}
