/* Ensure swiper slides fill the container */
.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 75vh; /* Enforce max height */
}
.swiper-container {
    overflow: hidden;
    max-height: 75vh; /* 75% of the viewport height */
    margin-bottom: 70px;
    position:relative;
}

/* Navigation buttons: Positioned on the edges */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10; /* Ensure it stays above images */
}

/* Left (Previous) Button */
.swiper-button-prev {
    left: 10px;
}

/* Right (Next) Button */
.swiper-button-next {
    right: 10px;
}

/* Hover effect */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
    bottom: unset!important;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal-width columns */
    grid-template-rows: repeat(2, 1fr); /* 2 equal-height rows */
    gap: 10px; /* Space between grid items */
    width: 100%;
}

.hero-item {
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents overflow outside the grid cell */
}

.hero-large {
    grid-column: span 2; /* Span 2 columns */
    grid-row: span 2; /* Span 2 rows */
}

.small-item {
    grid-column: span 1; /* Span 1 column */
    grid-row: span 1; /* Span 1 row */
}

.grid-2x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal-width columns */
    grid-template-rows: repeat(2, 1fr); /* 2 equal-height rows */
    gap: 10px;
    width: 100%;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents overflow outside the grid cell */
}

.hero-item img,
.grid-item a,
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire grid cell */
}
