/* ==========================================================================
   VISTA DE INICIO - MAYAN BOATS 
   ========================================================================== */

.carousel-inner {
    position: relative;
    background-color: var(--navy-dark);
}

.carousel-item img {
    height: 100vh;
    min-height: 650px;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 10s linear;
}

.carousel-item.active img {
    transform: scale(1.08);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.7) 0%, rgba(10, 25, 47, 0.3) 50%, rgba(10, 25, 47, 0.8) 100%);
    z-index: 1;
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-overlay-text h1 {
    font-size: 4.5rem;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 5;
}

.glass-card {
    background-color: var(--white);
    border-radius: 0;
    padding: 80px 40px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.image-grid {
    position: relative;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.large-item img {
    height: 650px;
}

.small-item img,
.small-item video {
    height: 313px;
}

.square-item img {
    height: 400px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-overlay span {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gold);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
    opacity: 0.85;
}

@media (max-width: 991px) {

    .large-item img {
        height: 500px;
    }

    .small-item img,
    .small-item video {
        height: 300px;
    }
}

@media (max-width: 768px) {

    .hero-overlay-text h1 {
        font-size: 2.8rem;
    }

    .glass-card {
        padding: 50px 20px;
        margin-top: -60px;
    }

    .large-item img,
    .small-item img,
    .small-item video,
    .square-item img {
        height: 350px;
    }
}