/* Explain: Styles for the reference gallery, lightbox, and pricing cards. */
/* Referenciagaléria és árcsomagok stílusai */

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    padding: 0;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    border-color: rgba(88, 129, 87, 0.58);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.14);
    transform: translateY(-6px);
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 600ms ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-zoom {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.88);
    color: var(--sage-dark);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 300ms ease, transform 300ms ease;
    backdrop-filter: blur(8px);
}

.gallery-item:hover .gallery-item-zoom,
.gallery-item:focus-visible .gallery-item-zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0) 0%, rgba(31, 46, 35, 0.85) 100%);
    text-align: left;
    color: #ffffff;
}

.gallery-item-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-item-place {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.gallery-item-place i {
    margin-right: 0.25rem;
    color: var(--primary-hover);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(19, 28, 22, 0.88);
    backdrop-filter: blur(6px);
}

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

.gallery-lightbox-figure {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-width: min(1000px, 100%);
    margin: 0;
}

.gallery-lightbox-figure img {
    width: 100%;
    max-height: 76vh;
    border-radius: 1.2rem;
    background: var(--surface-color);
    object-fit: contain;
}

.gallery-lightbox-caption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    color: #ffffff;
}

.gallery-lightbox-caption strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-lightbox-caption span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.gallery-lightbox-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.05rem;
    transition: background 200ms ease, transform 200ms ease;
    backdrop-filter: blur(6px);
}

.gallery-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

.gallery-lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
}

.gallery-lightbox-prev {
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    transform: translateY(-50%) scale(1.06);
}

.price-card {
    border-radius: 2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.price-card.is-featured {
    border-color: rgba(88, 129, 87, 0.6);
    box-shadow: 0 30px 80px rgba(88, 129, 87, 0.22);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    font-weight: 600;
    color: var(--sage-dark);
}

@media (min-width: 1024px) {
    .price-card.is-featured {
        transform: translateY(-6px);
    }
}

.gallery-item video {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    background: #131c16;
    object-fit: cover;
    pointer-events: none;
    transition: transform 600ms ease;
}

.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid rgba(250, 249, 246, 0.6);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.9);
    color: var(--sage-dark);
    font-size: 1rem;
    transform: translate(-50%, -50%);
    transition: transform 300ms ease, background 300ms ease;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.gallery-item:hover .gallery-item-play,
.gallery-item:focus-visible .gallery-item-play {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.08);
}

.gallery-lightbox-figure video {
    width: 100%;
    max-height: 76vh;
    border-radius: 1.2rem;
    background: #131c16;
}