/* Grid Gallery - Public Styles */

.gg-gallery {
    box-sizing: border-box;
    width: 100%;
}

.gg-gallery *,
.gg-gallery *::before,
.gg-gallery *::after {
    box-sizing: inherit;
}

.gg-item {
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    border-radius: 3px;
    background: #f0f0f0;
    cursor: pointer;
}

.gg-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Aspect ratio applied via JS */

/* Hover effect */
.gg-item:hover img {
    transform: scale(1.04);
    opacity: 0.92;
}

/* ── Video play icon ──────────────────── */
.gg-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gg-play-icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.25s ease;
}

.gg-item-video:hover .gg-play-icon {
    opacity: 1;
}

.gg-item-video:hover .gg-play-icon svg {
    transform: scale(1.1);
}

/* Always show a subtle play indicator even without hover */
.gg-item-video .gg-play-icon {
    opacity: 0.6;
}

/* ── Lightbox ─────────────────────────── */
.gg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    animation: gg-fade-in 0.2s ease;
}

@keyframes gg-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.gg-lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gg-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* YouTube iframe in lightbox */
.gg-lightbox iframe {
    display: block;
    width: min(880px, 92vw);
    aspect-ratio: 16/9;
    border: none;
    border-radius: 3px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Lightbox buttons — perfect circles ─ */
.gg-lb-btn {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.gg-lb-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.gg-lb-close {
    top: 16px;
    right: 20px;
    font-size: 26px;
}

.gg-lb-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.gg-lb-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.gg-lb-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.gg-lb-next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* hide nav when single item */
.gg-lightbox[data-count="1"] .gg-lb-prev,
.gg-lightbox[data-count="1"] .gg-lb-next { display: none; }
