section {
    margin-top: calc(60px + 30px);
    margin-bottom: 50px;
}

h1 {
    font-size: 18px;
    font-weight: 400;
    color: #3a894c;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
    margin: 7px 0 14px 0;
    line-height: 1.4;
    font-family: "Noto Sans Bengali", sans-serif;
    color: #212121;
    max-width: 90%;
}
h3 {
    font-size: 18px;
    font-weight: 400;
    color: #202020;
    line-height: 1.5;
    & span {
        display: block;
        font-style: italic;
    }
}

div.loading {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    & img {width: 70px;aspect-ratio: 1/1;object-fit: contain;display: flex;}
    & button {
        border: 0;
        outline: none;
        height: 38px;
        padding: 0 14px;
        font-size: 15px;
        font-weight: 500;
        font-family: "Noto Sans Bengali", sans-serif;
        background-color: #3a894c;
        color: #fff;
        border-radius: 50px;
        cursor: pointer;
        &:hover {opacity: 0.7;}
    }
    &[data-visibility="hidden"] {display: none !important;}
    &[data-height="min"] {height: auto;margin-top: 20px; & img {width: 50px;}}
}

div.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    height: auto;
    margin-top: 25px;
    & div.content {
        width: calc(25% - 15px);
        aspect-ratio: 1/1;
        background-color: #f7f7f7;
        border-radius: 17px;
        overflow: hidden;
        display: flex;
        cursor: pointer;
    }
    & div.content:hover img{
        transform: scale(1.05);
        opacity: 0.8;
    }
}

div.content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; 

}

section.image-viewer {
    position: fixed;
    margin: 0 !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100% ;
    background-color: rgb(255 255 255 / 80%);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    & button.close {
        position: absolute;
        top: 12px;
        right: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        width: 36px;
        border: 0;
        outline: 0;
        border-radius: 50px;
        cursor: pointer;
        background-color: #f7f7f7;
        & svg {
            width: 18px;
            height: 18px;
            fill: #353535;
            overflow: visible;
            display: flex;
        }
        &:hover {
            opacity: 0.7;
        }
    }
    & div.viewer {
        position: absolute;
        width: auto;
        max-width: 80%;
        max-height: calc(90% - 30px);
        display: flex;
        align-items: center;
        justify-content: center;
        & img {
            width: auto;
            max-width: 80%;
            max-height: calc(90% - 30px);
            object-fit: contain;
            border-radius: 17px;
            box-shadow: 0 0 2px 1px #e8e8e8;
        }
    }
    &.active {
        display: flex;
    }
}

@media only screen and (max-width: 1040px) {
    div.container div.content {
        width: calc(33.33% - 14px);
    }
}