/* css/pages/ambiente.css */
.gallery-hero {
    height: 60vh;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.video-section {
    padding: 4rem 2rem;
}

.video-container {
    max-width: 1900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0rem;
}

.gallery-preview {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: default; 
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

.preview-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    padding: 0rem;
    transition: opacity 0.3s ease;
}

.gallery-preview:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.preview-overlay p {
    color: var(--silver);
    margin-bottom: 1.5rem;
}

.view-gallery-btn {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-gallery-btn:hover {
    background: var(--gold-light);
}

@media (max-width: 768px) {
    .galleries-grid {
        grid-template-columns: 1fr;
    }
	.gallery-preview:hover .preview-image img {
        transform: scale(1.1);
    }

    .gallery-preview:hover .preview-overlay {
        opacity: 1;
    }
}
.fancybox-content {
	background:none;
}
.fancybox-close-small {
    background: var(--gold) !important;
    color: var(--dark) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px;
    right: 10px;
    opacity: 1;
    /*transition: transform 0.3s ease;*/
}

.fancybox-close-small:hover {
    background: var(--gold-light) !important;
	color: black !important;
    transform: rotate(90deg);
	overflow-x:hidden;
}

.fancybox-slide {
    background: rgba(10, 10, 10, 0.70);
}

.fancybox-toolbar {
    background: rgba(21, 21, 21, 0.8);
}

.fancybox-button {
    background: transparent !important;
    color: var(--gold) !important;
}

.fancybox-button:hover {
    color: black !important;
}