html {
    font-size: 23px; /* Set base font size for rem units */
}
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 23px; /* Set base font size explicitly */
    line-height: 1.5em;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.link-img {
    max-width: 1240px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.section--container {
    padding-left: 30px;
    padding-right: 30px;
}

.section {
    max-width: 1260px;
    padding: 10px;
    margin: auto;
}

/* main */
.section--main {
    background: url("images/15.jpg") no-repeat center center fixed;
    background-size: cover;
    border: 50px rgb(127, 53, 31) solid;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    position: relative;
    height: 90vh;
}
.main {
    position: absolute;
    top: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: baseline;
    min-height: 100%;
    width: 100%;
}
.main .logo {
    width: 11vw;
}
.main .motto {
    margin-top: 45vh;
    width: 30vw;
}

/* section text 1 */
.section--container.text {
    margin-top: 50px;
}

.section.text {
    display: flex;
    flex-direction: column;
}

.section.text p {
    margin: 0 0 1em 0;
    text-align: center;
}

/* product */
.section--container.product {
    display: flex;
    justify-content: center;
}
.section--container.products {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.section.section--container.products {
    padding: 0;
}
.product {
    padding: 10px;
}
.legend_sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

/* quote */
.section--container.quote {
    margin-top: 50px;
}
.section.quote {
    display: flex;
    flex-direction: column;
}
.section.quote .text {
    color: #eb7823;
    font-family: "Arial", Sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
}

/*section type*/

.section--container.section-type {
    margin-top: 50px;
}

.flamingo-bg {
    background-color: #fde0d7;
}
.brown-bg {
    background-color: #7f351f;
}
.brown-color {
    color: #7f351f;
}
.white-color {
    color: #fff;
}
.blue-bg {
    background-color: #27455a;
}

.section.section-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 55vh;
}

.section.section-type .label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.56rem;
    font-family: "Arial", Sans-serif;
    stroke: #000;
    text-align: center;
    gap: 20px;
}

.section.section-type .section-type-img {
    position: relative;
    height: 50vh;
    width: 60%;
}
.section.section-type .section-type-img img {
    object-position: 40% 24%;
}

/* gallery */

.section--container.gallery {
    margin-top: 30px;
}

.section.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    min-height: 100vh;
}

.section.gallery .gallery-item {
    display: flex;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    height: 100%;
}

.section.gallery .gallery-item .item_1,
.section.gallery .gallery-item .item_2,
.section.gallery .gallery-item .item_3,
.section.gallery .gallery-item .item_4 {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    position: relative;
}
.section.gallery .gallery-item .gallery-link-img {
    display: block;
}

.section.gallery .gallery-item .item_1::before,
.section.gallery .gallery-item .item_2::before,
.section.gallery .gallery-item .item_3::before,
.section.gallery .gallery-item .item_4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.8s ease;
    z-index: 1;
}
.img_label {
    width: 100%;
    height: 88%;
    color: white;
    position: absolute;
    font-family: "Ubuntu", Sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    z-index: 2;
    display: flex;
    flex-shrink: 1;
    justify-content: center;
    align-items: end;
}

.section.gallery .gallery-item:hover .item_1,
.section.gallery .gallery-item:hover .item_2,
.section.gallery .gallery-item:hover .item_3,
.section.gallery .gallery-item:hover .item_4 {
    transform: scale(1.1);
}
.section.gallery .gallery-item:hover .item_1::before,
.section.gallery .gallery-item:hover .item_2::before,
.section.gallery .gallery-item:hover .item_3::before,
.section.gallery .gallery-item:hover .item_4::before {
    background-color: rgba(100, 100, 100, 0.5);
}

/* /1 section/ */
.section.gallery .gallery-item .item_1.chairs {
    background-image: url(images/1.jpg);
}
.section.gallery .gallery-item .item_2.chairs {
    background-image: url(images/2.jpg);
}
.section.gallery .gallery-item .item_3.chairs {
    background-image: url(images/3.jpg);
}
.section.gallery .gallery-item .item_4.chairs {
    background-image: url(images/4.jpg);
}
/* /2 section/ */
.section.gallery .gallery-item .item_1.stroller {
    background-image: url(images/6.jpg);
}
.section.gallery .gallery-item .item_2.stroller {
    background-image: url(images/7.jpg);
}
.section.gallery .gallery-item .item_3.stroller {
    background-image: url(images/8.jpg);
}
.section.gallery .gallery-item .item_4.stroller {
    background-image: url(images/9.jpg);
}
/* /3 section/ */
.section.gallery .gallery-item .item_1.bathing {
    background-image: url(images/11.jpg);
}
.section.gallery .gallery-item .item_2.bathing {
    background-image: url(images/12.jpg);
}
.section.gallery .gallery-item .item_3.bathing {
    background-image: url(images/13.jpg);
}
.section.gallery .gallery-item .item_4.bathing {
    background-image: url(images/14.jpg);
}

@media (max-width: 768px) {
    html,
    body {
        font-size: 14px;
    }
    .section--container.products {
        margin-top: 0;
        flex-direction: column;
    }
    .section.section-type {
        flex-direction: column;
    }
    .section.section-type .label {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .section.section-type .section-type-img {
        width: 100%;
    }
    .section.gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    .section.gallery .gallery-item {
        min-height: 100%;
    }
}
