/* Yacht Category CSS file */
/* ------------------------------------------------- */

/* Introduction Section */
/* ------------------------------------------------- */

.yacht-cat-intro {
    padding: var(--space-11) 0;
}

.yacht-cat-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: center;
}

.yacht-cat-intro-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-cat-intro-content .heading-2 {
    color: var(--neutral-950);
}

.yacht-cat-intro-content .body-medium {
    color: var(--neutral-500);
}

.yacht-cat-intro-image {
    width: 100%;
    height: 100%;
}

.yacht-cat-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section */
/* ------------------------------------------------- */

.yacht-cat-gallery-slider.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-cat-gallery-slider .splide__track {
    height: 100%;
}

.yacht-cat-gallery-slider .splide__list {
    height: 100%;
}

.yacht-cat-gallery-slide {
    position: relative;
    height: 100%;
}

.yacht-cat-gallery-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.yacht-cat-gallery-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.yacht-cat-gallery-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

.yacht-cat-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-9);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.yacht-cat-gallery-bars {
    display: flex;
    gap: var(--space-2);
}

.yacht-cat-gallery-bar {
    display: block;
    width: 130px;
    height: 2px;
    background: var(--blue-300);
    cursor: pointer;
    transition: background 0.3s ease;
}

.yacht-cat-gallery-bar.is-active {
    background: var(--neutral-25);
}

.yacht-cat-gallery-counter {
    color: var(--neutral-25);
}

.yacht-cat-gallery-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.yacht-cat-gallery-next svg {
    display: block;
}

/* Content Section */
/* ------------------------------------------------- */

.yacht-cat-content {
    padding: var(--space-11) 0 0;
}

.yacht-cat-content .eyebrow {
    margin-bottom: var(--space-5);
}

.yacht-cat-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
}

.yacht-cat-content-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-cat-content-right {
    display: flex;
    flex-direction: column;
}

.yacht-cat-content .heading-2 {
    color: var(--neutral-950);
}

.yacht-cat-content .body-medium {
    color: var(--neutral-500);
}

/* Image Grid Section */
/* ------------------------------------------------- */

.yacht-cat-image-grid {
    padding: var(--space-11) 0;
}

.yacht-cat-image-grid-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.yacht-cat-image-grid-row {
    display: grid;
    gap: var(--space-4);
}

.yacht-cat-image-grid-item {
    overflow: hidden;
}

.yacht-cat-image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery 2 Section */
/* ------------------------------------------------- */

.yacht-cat-gallery-2-slider.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-cat-gallery-2-slider .splide__track {
    height: 100%;
}

.yacht-cat-gallery-2-slider .splide__list {
    height: 100%;
}

.yacht-cat-gallery-2-slide {
    position: relative;
    height: 100%;
}

.yacht-cat-gallery-2-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.yacht-cat-gallery-2-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.yacht-cat-gallery-2-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

/* Responsive */
/* ------------------------------------------------- */

@media (max-width: 800px) {
    .yacht-cat-intro-grid,
    .yacht-cat-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .yacht-cat-gallery-bars {
        display: none;
    }

    .yacht-cat-gallery-overlay {
        padding: var(--space-6) var(--space-9);
    }
}
