@import url("https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Lexend+Deca:wght@400;500;600;700;800&display=swap");
:root {
    --tg-body-font-family: 'Hind', sans-serif;
    --tg-heading-font-family: 'Lexend Deca', sans-serif;
    --tg-icon-font-family: "Font Awesome 5 Free";
    --tg-common-color-purple: #4c0a8a;

}
body{
    overflow-x: hidden;
}

.gallery-heading{
    text-align: center;
    margin-top: 100px;
    font-family: var(--tg-heading-font-family);
    color: var(--tg-common-color-purple);
    text-shadow: 2px 2px 5px rgba(54, 1, 72, 0.5);
}

/* silder */
.silder{
    height: 100vh;
    margin-top: 10px;
    width: 90vw;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}
.silder .silder-list .silder-item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.silder .silder-list .silder-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.silder .silder-list .silder-item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.silder .silder-list .silder-item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.silder .silder-list .silder-item .title,
.silder .silder-list .silder-item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.silder .silder-list .silder-item .topic{
    color: #f1683a;
}
.silder .silder-list .silder-item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.silder .silder-list .silder-item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.silder .silder-list .silder-item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* thumbail */
.silder-thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 9;
    display: flex;
    gap: 20px;
}
.silder-thumbnail .silder-item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.silder-thumbnail .silder-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.silder-thumbnail .silder-item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.silder-thumbnail .silder-item .content .title{
    font-weight: 500;
}
.silder-thumbnail .silder-item .content .description{
    font-weight: 300;
}
/* silder-arrows */
.silder-arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
@media screen and (max-width: 768px) {
    .silder {
        height: 70vh;
        width: 95vw;
        margin-top: 8px;
        border-radius: 15px;
    }
    .silder-thumbnail .silder-item{
    width: 120px;
    height: 180px;

}
}

/* For mobile devices */
@media screen and (max-width: 480px) {
    .silder {
        height: 60vh;
        width: 95vw;
        margin-top: 5px;
        border-radius: 10px;
    }
    .silder-thumbnail .silder-item{
    width: 100px;
    height: 160px;
  
}
}
.silder-arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.silder-arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.silder .silder-list .silder-item:nth-child(1){
    z-index: 1;
}

/* animation text in first silder-item */

.silder .silder-list .silder-item:nth-child(1) .content .author,
.silder .silder-list .silder-item:nth-child(1) .content .title,
.silder .silder-list .silder-item:nth-child(1) .content .topic,
.silder .silder-list .silder-item:nth-child(1) .content .des,
.silder .silder-list .silder-item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.silder .silder-list .silder-item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.silder .silder-list .silder-item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.silder .silder-list .silder-item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.silder .silder-list .silder-item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.silder.next .silder-list .silder-item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.silder.next .silder-thumbnail .silder-item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.silder.prev .silder-list .silder-item img{
    z-index: 9;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.silder.next .silder-thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running silder-time */

.silder .silder-time{
    position: absolute;
    z-index: 9;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.silder.next .silder-time,
.silder.prev .silder-time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.silder.prev .silder-list .silder-item:nth-child(2){
    z-index: 2;
}

.silder.prev .silder-list .silder-item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.silder.prev .silder-thumbnail .silder-item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.silder.next .silder-arrows button,
.silder.prev .silder-arrows button{
    pointer-events: none;
}
.silder.prev .silder-list .silder-item:nth-child(2) .content .author,
.silder.prev .silder-list .silder-item:nth-child(2) .content .title,
.silder.prev .silder-list .silder-item:nth-child(2) .content .topic,
.silder.prev .silder-list .silder-item:nth-child(2) .content .des,
.silder.prev .silder-list .silder-item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .silder .silder-list .silder-item .content{
        padding-right: 0;
    }
    .silder .silder-list .silder-item .content .title{
        font-size: 30px;
    }
}





.random-image-gallery {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    /* margin-bottom: 1700px; */
    /* height: 100vh; */
}

.random-images {
    padding-top: 500px;
    /* height: 100vh; */
    padding: 10px;
    max-width: 1350px;
    margin: 0 auto;
    /* background: 9B51E0; */
    display: grid;
    grid-gap: 3px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1px));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
}

.zoom-in-box {
    display: inline-block;
    color: white;
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hover-box {
    transition: all 0.3s ease;
}

.hover-box:hover {
    transform: scale(0.97);
}

.v-stretch {
    grid-row: span 2;
}

.h-stretch {
    grid-column: span 2;
}

.big-stretch {
    grid-row: span 2;
    grid-column: span 2;
}

.random-images div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* padding: 10px; */
}


/* Responsive Adjustments */
@media screen and (min-width: 1200px) {
    .image-gallery {
        width: 100%;
        height: 95vh;
    }

    .image-item {
        width: 200px;
        height: 300px;
    }
    .random-images {
        max-width: 1350px;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

@media screen and (max-width: 900px) {
    .image-gallery {
        width: 700px;
        height: 400px;
    }

    .image-item {
        width: 200px;
        height: 300px;
    }
    .random-images {
        max-width: 800px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
}

@media screen and (max-width: 700px) {
    .image-gallery {
        width: 600px;
        height: 500px;
    }

    .image-item {
        width: 100px;
        height: 200px;
    }
    .random-images {
        max-width: 600px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .v-stretch {
        grid-row: span 1;
    }

    .h-stretch {
        grid-column: span 1;
    }

    .big-stretch {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media screen and (min-width: 480px) and (max-width: 600px) {
    .image-gallery {
        width: 600px;
        height: 500px;
    }

    .image-item {
        width: 100px;
        height: 200px;
    }
    .random-images {
        max-width: 450px;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .zoom-in-box {
        width: 100%;
        height: auto;
    }
    .v-stretch {
        grid-row: span 1;
    }

    .h-stretch {
        grid-column: span 1;
    }

    .big-stretch {
        grid-column: span 1;
        grid-row: span 1;
    }
    
}

@media screen and (max-width: 480px) {
    .image-gallery {
        margin-top: 300px;
        width: 400px;
        height: 500px;
    }

    .image-item {
        width: 50px;
        height: 100px;
    }
    .random-images {
        max-width: 300px;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .v-stretch {
        grid-row: span 1;
    }

    .h-stretch {
        grid-column: span 1;
    }

    .big-stretch {
        grid-column: span 1;
        grid-row: span 1;
    }


}

@media screen and (max-width: 375px) {
    .image-gallery {
        margin-top: 500px;
        width: 300px;
        height: 400px;
    }

    .image-item {
        width: 40px;
        height: 80px;
    }
    .random-images {
        grid-template-columns: repeat(auto-fit, minmax(50px, 0.0.5fr));
    }

    .zoom-in-box {
        width: 100%;
        height: auto;
    }
    .v-stretch {
        grid-row: span 1;
    }

    .h-stretch {
        grid-column: span 1;
    }

    .big-stretch {
        grid-column: span 1;
        grid-row: span 1;
    }

}

/* @media(max-width:560px) {
    .v-stretch {
        grid-row: span 1;
    }

    .h-stretch {
        grid-column: span 1;
    }

    .big-stretch {
        grid-column: span 1;
        grid-row: span 1;
    }
} */






.head_sec{
    margin-top: 10rem;
}







/* Modal styles */
.image-modal {
    display: none;
    position: fixed;
    top: 9.5%;
    left: 0;
    width: 100%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
}


.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Add cursor pointer to grid images */
.zoom-in-box {
    cursor: pointer;
}