.square {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.rectangle {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.box-top-image {
    width: 100%;
    height: clamp(120px, 14vw, 200px);
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(6, 6, 6, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
}

.box-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-sizing: border-box;
    filter: contrast(1.05);
}

.square.medium {
    max-height: 500px;
    justify-self: center;
}

.square.contain img {
    object-fit: contain;
}

.square.small {
    max-height: 200px;
    border: 1px solid #bdbdbdd2;
    border-radius: 1px;
}

.square.smaller {
    max-height: 100px;
    border: 1px solid #bdbdbdd2;
    border-radius: 1px;
}

.square.small.unset {
    border: none;
}

.square.small.unset img {
    height: 100%;
    width: auto;
    box-sizing: unset;
}

.square.full,
.rectangle.full {
    width: 100%;
    max-height: 675px;
}

.product-info-container .square.small {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.product-info-container .square.small:hover {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-0.1rem);
}

.square.small img {
    object-fit: contain; 
    padding: 1rem; 
    box-sizing: border-box;
}

.square img,
.rectangle img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.square video,
.rectangle video {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    background-color: #000000;
}


.rounded-glaze {
    border-radius: 2rem;
    box-sizing: border-box;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.rounded-glaze::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(43, 43, 43, 0.235), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.gif.sect {
    min-height: 800px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
}

.position-top {
    object-position: top;
}

.contact.image {
    min-height: 700px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    background-image: url(../images/products/photoshoot.webp);
}

.gif.sect.sliding {
    background-image: url(../images/animation/sliding.gif);
}

.gif.sect.bifolds {
    background-image: url(../images/animation/folding.gif);
}

.preview.one {
    background-image: url(../images/hero/t100.webp);
}

.preview.two {
    background-image: url(../images/hero/a100.webp);
}

.preview.three {
    background-image: url(../images/hero/a350.webp);
}

.preview.four {
    background-image: url(../images/hero/doorware.webp);
}

.preview.five {
    background-image: url(../images/hero/locking.webp);
}

.preview.six {
    background-image: url(../images/systems/t350.webp);
}

.preview.seven {
    background-image: url(../images/hero/bonded-sash.webp);
}

.preview {
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 450px;
    background: #f9f9f9;
    overflow: hidden;
    border-radius: 4px;
}

.preview > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
   
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 1.2s ease;
}

.preview > div.active {
    opacity: 1;
    transform: scale(1);
}

.light-grey-bg {
    background-color: #e9e9e971;
}

.image-placeholder {
    background: linear-gradient(135deg, rgba(6, 6, 6, 0.06), rgba(6, 6, 6, 0.02));
    border: 1px solid rgba(6, 6, 6, 0.12);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.image-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(135deg, rgba(6, 6, 6, 0.06) 0px, rgba(6, 6, 6, 0.06) 1px, transparent 1px, transparent 14px);
    pointer-events: none;
}

.image-placeholder__label {
    position: relative;
    z-index: 1;
    margin: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 10rem;
    border: 1px solid rgba(6, 6, 6, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: rgba(6, 6, 6, 0.75);
    font-size: 0.85em;
    letter-spacing: 0.02em;
}

section.info.black .image-placeholder {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

section.info.black .image-placeholder::before {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0px, rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 14px);
}

section.info.black .image-placeholder__label {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.85);
}

@media screen and (max-width: 1550px) {
    .hero .square {
        max-height: 500px;
        aspect-ratio: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .square img {
        width: 100%;
        height: 100%;
        object-position: center;
        object-fit: cover;
    }
    section.info .square {
        order: -1;
    }
}

@media screen and (max-width:1365px) {
    .contain img {
        object-fit: contain;
    }
    section.info .square {
        aspect-ratio: 16/9;
    }
}

@media screen and (max-width: 1000px) {
    .square img {
        /* object-fit: contain; */
    }
}
