/* ── Al Dente Horizontal Gallery Widget ── */

.adg-section {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    background-color: #f4ecd0;
    box-sizing: border-box;
}

.adg-horizontal-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ── Text block ── */
.adg-fixed-text {
    flex: 0 0 45vw;
    width: 45vw;
    height: 100%;
    z-index: 10;
    background-color: #f4ecd0;
    display: flex;
    align-items: center;
    padding-left: max(5%, calc((100vw - 1440px) / 2));
    padding-right: 60px;
    box-sizing: border-box;
}

.adg-text-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 65vh;
    width: 100%;
}

.adg-top-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.adg-fixed-text h2 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #c53a2d;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.adg-fixed-text p {
    color: #c53a2d;
    font-size: 1.15rem;
    max-width: 460px;
    line-height: 1.3;
    margin: 0;
}

.adg-contact-button {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #c53a2d;
    color: #c53a2d;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    width: fit-content;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.adg-contact-button:hover {
    background-color: #c53a2d;
    color: #f4ecd0;
    text-decoration: none;
}

/* ── Gallery container ── */
.adg-gallery-container {
    flex: 0 0 calc(100vw - 45vw);
    width: calc(100vw - 45vw);
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.adg-gallery-strip {
    display: flex;
    gap: 40px;
    padding-left: 20px;
    will-change: transform;
}

.adg-gallery-item {
    flex: 0 0 28vw;
    height: 65vh;
}

.adg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ── Editor placeholder ── */
.adg-placeholder {
    background-color: rgba(197, 58, 45, 0.07);
    border: 2px dashed #c53a2d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
}

.adg-placeholder-inner {
    color: #c53a2d;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .adg-section {
        height: auto;
        min-height: 100vh;
    }

    .adg-horizontal-wrapper {
        flex-direction: column;
    }

    .adg-fixed-text {
        flex: unset;
        width: 100%;
        height: auto;
        padding: 50px 6% 40px;
    }

    .adg-text-content-wrapper {
        height: auto;
        gap: 30px;
    }

    .adg-gallery-container {
        flex: unset;
        width: 100%;
        height: 50vh;
        overflow: hidden;
    }

    .adg-gallery-strip {
        gap: 20px;
        padding-left: 6%;
    }

    .adg-gallery-item {
        flex: 0 0 75vw;
        height: 40vh;
    }
}
