
.section-2 img,
.title-section img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    justify-self: center;
    border-radius: 20px;
    border: #593828 6px solid;
}
.section-2 {
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 48px max(24px, calc((100% - 1200px) / 2));
    background-color: #F1E7DA;
    border-bottom: #593828 2px inset;
}
.promo-text {
    color: #593828;
    font-weight: normal;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.6;
}

/*Let the text wrap with the available space*/
.promo-text br {
    display: none;
}

/*Description Text*/
.description {
    border-bottom: #593828 2px inset;
    background-color: #D9AB98;
    color: #593828;
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
    font-style: italic;
    padding: 1em;
}

/*Title Section*/
.title-section {
    padding: 40px max(24px, calc((100% - 1400px) / 2));

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;

    /*vertical alignment*/
    align-items: center;

    /*horizontal alignment*/
    justify-content: center;

    border-bottom: #593828 2px inset;
    background-color: #F1E7DA;
}
.title-section video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background-color: #593828;
    border-radius: 20px;
    border: #593828 6px solid;
}
.video-section {
    width: 100%;
    max-width: 337.5px;
    justify-self: center;
}
.title {
    display: flex;
    flex-direction: column;

    gap: 28px;
    text-align: center;
    align-items: center;
}
.text-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
.big-title {
    font-weight: bolder;
    font-size: clamp(36px, 4vw, 55px);
    color: #593828;
}
.motto {
    font-weight: bold;
    font-size: large;
    color: dimgray;
}

/*Title button */
.title-button {
    /*To be able to show tooltip*/
    position: relative;


    color: #593828;
    font-weight: bolder;
    background-color: #D9AB98;
    font-size: large;
    border-radius: 20px;
    display: flex;
    gap: 10px;

    padding: 10px;
    border: #593828 1px solid;
    box-shadow: 3px 3px;

    transition: transform 0.1s, box-shadow 0.1s;


    /*vertical alignment*/
    align-items: center;

    justify-content: center;


}
.title-button:hover .tooltip,
.title-button:focus-visible .tooltip {
    /*Just for the tooltip*/

    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);

    transition-delay: 1s;
}
.title-button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px #593828;
}

/*Keep the title above the photos on tablets*/
@media (max-width: 1024px) {
    .hero-section,
    .atmosphere-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section .title,
    .atmosphere-section .promo-text {
        grid-column: 1 / -1;
        order: -1;
    }

    .title-section img {
        max-width: none;
        aspect-ratio: 4 / 3;
    }

    .section-2 {
        gap: 24px;
    }
}

/*Keep the video controls usable on smaller screens*/
@media (max-width: 767px) {
    .video-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*Give photos and text their own space on phones*/
@media (max-width: 600px) {
    .title-section,
    .section-2 {
        padding: 28px 20px;
        gap: 20px;
    }

    .section-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-2 .promo-text {
        order: 1;
    }

    .section-2 img {
        aspect-ratio: 4 / 3;
    }

    .hero-section,
    .atmosphere-section {
        gap: 24px 12px;
    }

    .title-section img,
    .section-2 img,
    .title-section video {
        border-width: 3px;
        border-radius: 16px;
    }

    .title-section img {
        aspect-ratio: 4 / 5;
    }

    .title {
        gap: 20px;
        padding: 8px 0;
    }

    .title-button {
        padding: 12px 24px;
    }
}
