.gallery-photos-grid {
    column-count: 3;
    column-gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .gallery-photos-grid {
        column-count: 2;
    }
}

@media (max-width: 560px) {
    .gallery-photos-grid {
        column-count: 1;
    }
}

.gallery-photo-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-photo-item img {
    width: 100%;
    display: block;
}

.gallery-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    font-size: 0.85rem;
}

.gallery-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

@media (max-width: 560px) {
    .gallery-videos-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-video-item .video-embed-lazy {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-video-item .video-embed-lazy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.gallery-video-item .video-embed-lazy iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-video-item .video-embed-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--culoare-accent);
    color: #fff;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-video-item .video-embed-play::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.gallery-video-caption {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--culoare-text-secundar);
}

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
}

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

.gallery-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

.gallery-lightbox-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.gallery-lightbox-caption {
    color: #fff;
    font-size: 0.95rem;
}

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

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-prev {
    left: 16px;
}

.gallery-lightbox-next {
    right: 16px;
}

.gallery-lightbox-share {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.gallery-lightbox-share:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-share-wrapper {
    position: relative;
}

.gallery-share-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: var(--culoare-fundal);
    border-radius: 8px;
    padding: 8px;
    flex-direction: column;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-share-menu.is-open {
    display: flex;
}

.gallery-share-option {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--culoare-text);
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.gallery-share-option:hover {
    background: var(--culoare-fundal-alt);
    color: var(--culoare-text);
}

@media (max-width: 560px) {
    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}
