/* global variables  */
:root {
    --brand-color: #e1251b;
    --secondary-color: #f21736;
}

.main-photos-widget .container-photo-button-section {
    padding: 0 min(12px, 5%);
}

.main-photos-widget .photo-grid {
    display: flex;
    gap: 1rem;
    height: 640px ;
    
}

.main-photos-widget .left-photo,
.main-photos-widget .right-photo {
    border-radius: 12px;
    overflow: hidden;
}

/* Left photo takes 1 column */
.main-photos-widget .left-photo {
    display: flex;
    flex: 1;
}

.main-photos-widget .left-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Right photos container */
.main-photos-widget .right-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Make right-top and right-bottom equal height */
.main-photos-widget .right-photo div {
    flex: 1 ;
    display: flex;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.main-photos-widget .right-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 750px) {
    .main-photos-widget .photo-grid {
        flex-direction: column;
        height: 962px; /* 310 (left) + 16 (gap) + 636 (right) */
        width: 90%;
        margin: auto;
    }
    .main-photos-widget .left-photo {
        height: 310px !important;
        flex: none !important;
    }
    .main-photos-widget .right-photo {
        height: 636px !important; /* 310 + 16 + 310 */
        flex: none !important;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    .main-photos-widget .photo-grid {
        height: 500px;
    }
}
.main-photos-widget .left-photo,
.main-photos-widget .right-photo>div {
    position: relative;
    cursor: pointer;
}

.main-photos-widget .mph-stretched-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border-radius: 12px !important;
}

.main-photos-widget .left-photo a.btn,
.main-photos-widget .right-photo div a.btn {
    position: absolute;
    padding: min(4px, 2%) min(30px, 5%);
    border: none;
    font-weight: 700;
    border-radius: 15px;
    background-color: white;
    font-size: clamp(0.2rem, calc(0.8vw + 0.2rem), 1rem);
    z-index: 12;
}

.main-photos-widget .left-photo a.btn {
    inset-inline-start: 10%;
    bottom: 10%;
    background-color: #262430;
    color: white;
    font-size: clamp(0.2rem, calc(0.8vw + 0.4rem), 1.3rem);
}

.main-photos-widget .right-photo div:nth-child(1) a.btn {
    color: #28565e;
    bottom: 10%;
    inset-inline-start: 44%;
}

.main-photos-widget .right-photo div:nth-child(2) a.btn {
    color: #28565e;
    inset-inline-end: 5%;
    bottom: 10%;
}

.main-photos-widget .img-main-title-photo-button-section,
.main-photos-widget .img-secondary-title-photo-button-section,
.main-photos-widget .img-main-text-photo-button-section,
.main-photos-widget .img-text-photo-button-section {
    position: absolute;
}

.main-photos-widget .left-photo .img-main-title-photo-button-section {
    top: 12%;
    inset-inline-start: 5%;
    font-size: clamp(0.2rem, calc(2vw + 2rem), 4rem);
    font-weight: 900;
}

.main-photos-widget .left-photo .img-secondary-title-photo-button-section {
    top: 23%;
    inset-inline-start: 5%;

    font-size: clamp(0.1rem, calc(0.8vw + 0.6rem), 1.5rem);
    font-weight: 900;
}

.main-photos-widget .left-photo .img-text-photo-button-section {
    inset-inline-start: 5%;
    top: 28%;
    inset-inline-end: 40%;
    font-size: clamp(0.2rem, calc(0.5vw + 1rem), 1rem);
    line-height: 1.3;
    font-weight: 500;
}

.main-photos-widget .right-photo .img-main-title-photo-button-section {
    top: 5%;
    inset-inline-start: 38%;
    inset-inline-end: 1%;
    font-weight: 900;
    color: #28565e;
    font-size: clamp(1rem, calc(1.1vw + 1rem), 2rem);
}

.main-photos-widget .right-photo .img-secondary-title-photo-button-section {
    top: 16%;
    inset-inline-start: 38%;
    inset-inline-end: 1%;
    font-size: clamp(0.1rem, calc(0.6vw + 0.25rem), 1rem);
    color: #28565e;
    font-weight: 900;
}

.main-photos-widget .right-photo .img-text-photo-button-section {
    top: 25%;
    inset-inline-start: 40%;
    font-size: clamp(0.2rem, calc(0.5vw + 1rem), 1rem);
    color: #28565e;
    inset-inline-end: 3%;
    font-weight: 500;
}

@media (max-width: 1200px) {

    /* left-photo */
    .main-photos-widget .left-photo .img-main-title-photo-button-section {
        top: 11%;
        font-size: clamp(0.8rem, 2vw + 1.8rem, 3rem);
    }

    .main-photos-widget .left-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.1rem, calc(0.8vw + 0.5rem), 1rem);
    }

    .main-photos-widget .left-photo .img-text-photo-button-section {
        font-size: clamp(0.2rem, calc(0.2vw + 0.8rem), 1.5rem);
    }

    /* left-photo */

    /* right-photo */
    .main-photos-widget .right-photo .img-main-title-photo-button-section {
        font-size: clamp(0.2rem, calc(1vw + 1.1rem), 1.5rem);
    }

    .main-photos-widget .right-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.1rem, calc(0.9vw + 0.3rem), 0.8rem);
    }

    .main-photos-widget .right-photo .img-text-photo-button-section {
        font-size: clamp(0.1rem, calc(0.5vw + 0.5rem), 0.7rem);
    }

    /* right-photo */
}


@media (max-width: 992px) {

    /* left-photo */
    .main-photos-widget .left-photo .img-main-title-photo-button-section {
        top: 11%;
        font-size: clamp(0.2rem, calc(1vw + 1.8rem), 2.5rem);
    }

    .main-photos-widget .left-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.1rem, calc(0.8vw + 0.3rem), 1.5rem);
    }

    .main-photos-widget .left-photo .img-text-photo-button-section {
        font-size: clamp(0.2rem, calc(0.1vw + 0.6rem), 1rem);
        inset-inline-end: 38%;
    }

    /* left-photo */
    /* right-photo */
    .main-photos-widget .right-photo .img-main-title-photo-button-section {
        font-size: clamp(0.2rem, calc(1vw + 1.1rem), 1.1rem);
    }

    .main-photos-widget .right-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.6rem, calc(0.9vw + 0.04rem), 0.7rem);
    }

    .main-photos-widget .right-photo .img-text-photo-button-section {
        font-size: clamp(0.55rem, calc(0.9vw + 0.1rem), 1.4rem);
    }

    /* right-photo */
}

@media (max-width: 768px) {

    /* left-photo */
    .main-photos-widget .left-photo .img-main-title-photo-button-section {
        font-size: clamp(0.2rem, calc(1vw + 2.8rem), 3rem);
    }

    .main-photos-widget .left-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.1rem, calc(0.9vw + 0.8rem), 1.5rem);
    }

    .main-photos-widget .left-photo .img-text-photo-button-section {
        font-size: clamp(0.2rem, calc(0.6vw + 0.5rem), 1.5rem);
    }

    /* left-photo */
    /* right-photo */
    .main-photos-widget .right-photo .img-main-title-photo-button-section {
        font-size: clamp(0.2rem, calc(1.3vw + 1.2rem), 2.1rem);
    }

    .main-photos-widget .right-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.1rem, calc(0.5vw + 0.57rem), 1rem);
    }

    .main-photos-widget .right-photo .img-text-photo-button-section {
        font-size: clamp(0.55rem, calc(0.9vw + 0.5rem), 1.4rem);
    }

    /* right-photo */
}

@media (max-width: 480px) {

    /* left-photo */
    .main-photos-widget .left-photo .img-main-title-photo-button-section {
        top: 10%;
        font-size: clamp(0.8rem, calc(2vw + 1.7rem), 3rem);
    }

    .main-photos-widget .left-photo .img-secondary-title-photo-button-section {
        top: 22%;
        font-size: clamp(0.08rem, calc(0.5vw + 0.6rem), 1rem);
    }

    .main-photos-widget .left-photo .img-text-photo-button-section {
        top: 27%;
        font-size: clamp(0.05rem, calc(0.4vw + 0.5rem), 0.9rem);
    }

    /* left-photo */
    /* right-photo */
    .main-photos-widget .right-photo .img-main-title-photo-button-section {
        font-size: clamp(0.01rem, calc(1.4vw + 0.77rem), 3rem);
    }

    .main-photos-widget .right-photo .img-secondary-title-photo-button-section {
        font-size: clamp(0.1rem, calc(0.4vw + 0.48rem), 1rem);
    }

    .main-photos-widget .right-photo .img-text-photo-button-section {
        font-size: clamp(0.35rem, calc(0.5vw + 0.4rem), 1.4rem);
    }

    /* right-photo */
}

/* Hover effects */
.main-photos-widget .left-photo {
    cursor: pointer;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-photos-widget .left-photo:hover {
    transform: scale(1.02);
}

.main-photos-widget .left-photo img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-photos-widget .left-photo:hover img {
    transform: scale(1.05);
}

.main-photos-widget .right-photo>div {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-photos-widget .right-photo>div:hover {
    transform: scale(1.02);
}

.main-photos-widget .left-photo picture,
.main-photos-widget .right-photo div picture {
    width: 100%;
    height: 100%;
    display: block;
}

.main-photos-widget .right-photo picture {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100% !important;
}

.main-photos-widget .right-photo>div:hover img {
    transform: scale(1.05);
}

/* Button hover */
.main-photos-widget .left-photo a.btn,
.main-photos-widget .right-photo div a.btn {
    transition: all 0.3s ease;
}

.main-photos-widget .left-photo a.btn:hover,
.main-photos-widget .right-photo div a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.main-photos-widget .left-photo a.btn:hover {
    background-color: #1a1823;
    color: white;
}

.main-photos-widget .right-photo div:nth-child(1) a.btn:hover,
.main-photos-widget .right-photo div:nth-child(2) a.btn:hover {
    background-color: #f5f5f5;
    color: #28565e;
}

/* Text hover */
.main-photos-widget .img-main-title-photo-button-section,
.main-photos-widget .img-secondary-title-photo-button-section,
.main-photos-widget .img-text-photo-button-section {
    transition: transform 0.3s ease;
}

.main-photos-widget .left-photo:hover .img-main-title-photo-button-section,
.main-photos-widget .left-photo:hover .img-secondary-title-photo-button-section,
.main-photos-widget .left-photo:hover .img-text-photo-button-section,
.main-photos-widget .right-photo>div:hover .img-main-title-photo-button-section,
.main-photos-widget .right-photo>div:hover .img-secondary-title-photo-button-section,
.main-photos-widget .right-photo>div:hover .img-text-photo-button-section {
    transform: translateY(-2px);
}

/* Disable hover on touch devices */
@media (hover: none) and (pointer: coarse) {

    .main-photos-widget .left-photo:hover,
    .main-photos-widget .right-photo>div:hover {
        transform: none;
    }

    .main-photos-widget .left-photo:hover img,
    .main-photos-widget .right-photo>div:hover img {
        transform: none;
    }
}
.section_subtitle{
    max-width: 750px;
    margin: auto;
}