/* Basic reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #0089f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: white;
    margin: 0;
    padding: 20px;
}

.hdr{
    display:flex;
    width: 80%;
    margin:auto;
    padding-left: 5%;
    flex-direction: row;
    align-items: center;
    
}
.hdr img{
    width: 15%;    
    padding-bottom: 10px;
}

.hdr a {
    width:15%;
    text-align: center;
    vertical-align: bottom;
}

.hdr h1 {
    width:  40%;
    text-align: center;
    font-size: 2em;
    color: black;
}

.container {
    display: grid;
    width: 80%;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-box {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    margin: 20px;
    width: 80%;

}

.title-bar {
    background-color: #0089f0;
    color: #fff;
    padding: 2px;
    font-size: 1.2em;
}

.album-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.album-image {
    align-self: center;
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    cursor: pointer;
    
}

.pollution  {
    width: 50%;
    
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 5%;
    }
    .hdr{
        width: 100%;
    }    
    .hdr a {
        width:20%;
        font-size: 0.7em;
    }
    .hdr img{
        width: 30%;  
    }  
    .hdr h1 {
        width:50%;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 5%;
    }
    .hdr{
        width: 100%;
    }  
    .hdr a {
        width:20%;
        font-size: 0.8em;
    }
    .hdr img{
        width: 30%;  
    }    
    .hdr h1 {
        width: 50%;
        font-size: 1em;
    }
}









/*========================================================*/
/* css for image carousel from album.css*/
/*========================================================*/

.carousel-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.carousel-content {
    position: fixed;
    top:auto;
    left:auto;
    background-color: black;
    padding: 4%;
    
    width: 95%;
    height: 95%;
    border-radius: 10px;
    
}

.carousel-inner {
    display: flex;
    align-items: center;
    width: 90%;
    height: 90%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.carousel-inner img {
    margin: auto; /*centering */
    max-width: 90%;
    max-height: 70vh;    

    object-fit: contain;
    width: auto;
    height: auto;
    

    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Added transition for fade effect */
}

.carousel-inner img.active {        
    display: block;
    opacity: 1; /* Make the active image visible */
}


.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3em;
    cursor: pointer;
    color: white;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-size: 3em;
    user-select: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.carousel-dots {
    text-align: center;
    padding-top: 10px;
}

.carousel-dots span {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
}

.carousel-dots span.active {
    background-color: white;
}



@media (max-width: 768px) {
    .carousel-content {
        width: 90%;
    }
    .close {
        font-size: 2em;
    }
    .prev, .next {
        font-size: 2em;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-content {
        width: 90%;
    }
    .close {
        font-size: 2em;
    }
    .prev, .next {
        font-size: 2em;
        padding: 12px;
    }
}