* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Antonio", sans-serif;
}

/*body*/
body {
    background-color: rgb(0, 0, 0);
    color: white;
}

section {
    padding: 24px 0;
}

.container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url(/assets/icones/image-2-desktop.webp);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/*header*/
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/*logo*/
.header img {
    width: 250px;
    height: 250px;
    align-items: center;
}

/*contact button*/
.contact-button {
    display: inline-block;
    background-color: white;
    color: rgb(0, 0, 0);
    border: 2px solid white;
    border-radius: 30px;
    padding: 13px 25px;
    cursor: pointer;
    font-size: 23px;
    font-weight: bold;
    margin-top: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

/*contact button hover effect*/
.contact-button:hover {
    background-color: transparent;
    color: white;
    border: 3px solid rgb(135, 135, 135);
    transform: scale(1.1);
}

/*navigation*/
.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background-color: white;
    margin: 0;
}

/*navigation links*/
.navigation a {
    color: black;
    text-decoration: none;
    font-size: 23px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/*navigation links hover effect*/
.navigation a:hover {
    color: rgb(0, 0, 0);
    transform: scale(1.1);
    text-decoration: underline;
}

/*sections*/
/*news items*/
.grid {
    width: min(1200px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    row-gap: 0px;
}

.news-item {
    width: 290px;
    height: 220px;
    margin-bottom: 20px;
    border: 8px solid white;
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.news-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item:hover {
    transform: scale(1.05);
    border-color: rgb(200, 200, 200);
}

span {
    font-size: larger;
    font-weight: bold;
}

/*section titles*/
.h2 {
    font-size: 35px;
    margin-bottom: 20px;
    text-align: center;
    margin-left: 23px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.h2:hover {
    transform: scale(1.1);
}

/*section text content*/
.text-content {
    font-size: 25px;
    line-height: 1;
    margin-bottom: 20px;
    text-align: center;
    width: min(950px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/*gallery items*/
.grid-gallery {
    width: min(1200px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    row-gap: 0px;
}

.gallery-item {
    width: 270px;
    height: 220px;
    margin-bottom: 20px;
    border: 8px solid white;
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    padding-bottom: 50px;
    background: white;
}

.caption {
    color: black;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.item-g {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding-bottom: 5px;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: rgb(200, 200, 200);
    background: rgb(200, 200, 200);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/*excursions items*/
.grid-excursions {
    width: min(1200px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    row-gap: 0px;
}

.excursion-item {
    width: 270px;
    height: 220px;
    margin-bottom: 20px;
    border: 8px solid white;
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.item-e {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.excursion-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.excursion-item:hover {
    transform: scale(1.05);
    border-color: rgb(200, 200, 200);
}

/*video poster + play overlay*/
.video-wrap {
    position: relative;
    width: 100%;
    height: auto;
    line-height: 0;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item .video-wrap,
.excursion-item .video-wrap {
    height: 100%;
}

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-play:hover {
    transform: scale(1.08);
}

.video-play::before {
    content: "";
    display: block;
    margin-left: 3px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid white;
}

.video-wrap.is-playing .video-play {
    background: rgba(0, 0, 0, 0.55);
}

.video-wrap.is-playing .video-play::before {
    margin-left: 0;
    width: 14px;
    height: 18px;
    border: 0;
    background:
        linear-gradient(white, white) left center / 4px 100% no-repeat,
        linear-gradient(white, white) right center / 4px 100% no-repeat;
}

.video-wrap.is-hidden .video-play {
    opacity: 0;
}

.media-clickable {
    cursor: zoom-in;
}

.media-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.media-modal.is-open {
    display: flex;
}

.media-modal-content {
    position: relative;
    width: min(1000px, 92vw);
    height: min(700px, 82vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid white;
    background: black;
}

.media-modal-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.media-modal-play::before {
    content: "";
    display: block;
    margin-left: 3px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid currentColor;
}

.media-modal-play:hover {
    transform: scale(1.08);
}

.media-modal-play.is-playing {
    background: rgba(0, 0, 0, 0.55);
}

.media-modal-play.is-playing::before {
    margin-left: 0;
    width: 14px;
    height: 20px;
    border: 0;
    background:
        linear-gradient(currentColor, currentColor) left center / 4px 100% no-repeat,
        linear-gradient(currentColor, currentColor) right center / 4px 100% no-repeat;
}

.media-modal-play.is-hidden {
    opacity: 0;
}

.media-modal-caption {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    max-width: calc(100% - 120px);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.media-modal-caption.is-visible {
    opacity: 1;
}

.media-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 0;
    margin: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10000;
}

.media-modal-nav::before {
    content: "";
    width: 14px;
    height: 14px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    display: block;
}

.media-modal-prev::before {
    transform: rotate(-135deg);
}

.media-modal-next::before {
    transform: rotate(45deg);
}

.media-modal-prev {
    left: 20px;
}

.media-modal-next {
    right: 20px;
}

.media-modal-nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: white;
}

.media-modal:not(.is-open) .media-modal-nav {
    display: none;
}

.media-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(42%, -42%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: white;
    color: black;
    font-size: 0;
    line-height: 0;
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-modal-close::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transform: rotate(45deg);
}

.media-modal-close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transform: rotate(-45deg);
}

.media-modal-close:hover {
    transform: translate(42%, -42%) scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.media-modal-close:active {
    transform: translate(42%, -42%) scale(0.96);
}

body.no-scroll {
    overflow: hidden;
}

/*contact section*/
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    color: rgb(255, 255, 255);
}

.title {
    font-size: 35px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease;
    width: min(420px, 100%);
    margin-bottom: 16px;
}

.contact-item {
    width: min(290px, 100%);
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.contact-item a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.28s ease;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    min-height: 60px;
}

.contact-item a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateX(6px);
    background-color: rgb(194, 194, 194);
}

.facebook,
.instagram,
.whatsapp {
    width: 45px;
    height: 45px;
    transition: transform 0.28s ease;
}

.contact-item a:hover .facebook,
.contact-item a:hover .instagram,
.contact-item a:hover .whatsapp {
    transform: scale(1.12);
}

.icon-text {
    text-align: left;
    font-size: 25px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.icon-text:hover {
    color: rgb(0, 0, 0);
}

/*footer*/
.footer {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 10px;
    font-size: 25px;
}

/*company name in footer*/
.company {
    font-weight: bold;
    font-size: 25px;
}

/*developer name in footer*/
.dev-button {
    display: inline-block;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    margin-left: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

/*developer name hover effect*/
.dev-button:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.1);
}

/*responsive design*/
/* Adjustments for tablets and smaller screens */
@media (max-width: 768px) {
    .container {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(/assets/icones/image-2-mobile.webp);
        background-attachment: fixed;
        background-size: cover;
        background-color: rgba(0, 0, 0, 5);
    }

    section {
        padding: 18px 0;
    }

    .navigation {
        gap: 16px;
        padding: 15px;
    }

    .navigation a {
        font-size: 19px;
    }

    .h2 {
        font-size: 30px;
        margin-left: 0;
    }

    .text-content {
        font-size: 20px;
        line-height: 1.25;
    }

    .grid {
        width: min(1200px, calc(100% - 48px));
    }

    .news-item,
    .gallery-item,
    .excursion-item {
        width: min(320px, 100%);
    }

    .icon-text {
        font-size: 20px;
    }
}

/* Adjustments for mobile devices */
@media (max-width: 480px) {
    .container {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url(/assets/icones/image-2-mobile.webp);
        background-attachment: fixed;
        background-size: cover;
        background-color: rgba(0, 0, 0, 5);
    }

    .header {
        padding: 12px;
    }

    .header img {
        width: 120px;
        height: auto;
    }

    .contact-button {
        font-size: 17px;
        padding: 10px 16px;
    }

    .navigation {
        padding: 11px 12px;
    }

    .navigation a {
        font-size: 16px;
    }

    .h2 {
        font-size: 24px;
    }

    .text-content {
        width: calc(100% - 28px);
        font-size: 17px;
    }

    .grid,
    .grid-gallery,
    .grid-excursions {
        width: calc(100% - 20px);
        gap: 10px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .news-item,
    .gallery-item,
    .excursion-item {
        width: calc(50% - 6px);
        max-width: none;
        margin-bottom: 10px;
    }

    .news-item,
    .excursion-item {
        height: auto;
        aspect-ratio: 3 / 2;
        border-width: 5px;
    }

    .gallery-item {
        height: auto;
        padding-bottom: 4px;
        border-width: 5px;
        display: flex;
        flex-direction: column;
    }

    .item,
    .item-g,
    .item-e {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .caption {
        font-size: 15px;
        min-height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .video-play {
        width: 42px;
        height: 42px;
    }

    .video-play::before {
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid white;
    }

    .media-modal {
        padding: 10px;
    }

    .media-modal-content {
        width: calc(100vw - 20px);
        height: min(78vh, 560px);
    }

    .media-modal-media {
        border-width: 2px;
    }

    .media-modal-play {
        width: 48px;
        height: 48px;
    }

    .media-modal-play::before {
        margin-left: 2px;
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 12px;
    }

    .media-modal-caption {
        bottom: 10px;
        max-width: calc(100% - 56px);
        font-size: 14px;
        padding: 7px 10px;
        letter-spacing: 0.25px;
    }

    .media-modal-close {
        top: 0;
        right: 0;
        transform: translate(30%, -30%);
        width: 44px;
        height: 44px;
    }

    .media-modal-close::before {
        width: 16px;
        height: 2.5px;
    }

    .media-modal-close::after {
        width: 16px;
        height: 2.5px;
    }

    .media-modal-nav {
        width: 42px;
        height: 42px;
    }

    .media-modal-prev {
        left: 5px;
    }

    .media-modal-next {
        right: 5px;
    }

    .media-modal-nav::before {
        width: 11px;
        height: 11px;
        border-top-width: 2.5px;
        border-right-width: 2.5px;
    }

    .media-modal-prev {
        left: 4px;
    }

    .media-modal-next {
        right: 4px;
    }

    .footer,
    .company,
    .dev-button {
        font-size: 18px;
    }

    .title {
        font-size: 25px;
        width: min(290px, 100%);
    }

    .icon-text {
        font-size: 18px;
    }

    .contact-item {
        width: min(240px, 100%);
    }
}

/* Further adjustments for very small screens */
@media (max-width: 375px) {
    .gallery-item {
        padding-bottom: 2px;
    }

    .caption {
        font-size: 15px;
    }

    .title {
        font-size: 24px;
        width: min(290px, 100%);
    }

    .icon-text {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .container {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url(/assets/icones/image-2-mobile.webp);
        background-attachment: fixed;
        background-size: cover;
        background-color: rgba(0, 0, 0, 5);
    }

    .grid,
    .grid-gallery,
    .grid-excursions {
        justify-content: center;
    }

    .news-item,
    .gallery-item,
    .excursion-item {
        width: 100%;
        max-width: 320px;
    }

    .gallery-item {
        padding-bottom: 1px;
    }

    .caption {
        font-size: 15px;
        min-height: 16px;
        padding: 1px 2px;
    }

    .title {
        font-size: 24px;
        width: min(290px, 100%);
    }

    .icon-text {
        font-size: 18px;
    }
}