*,
*:before,
*:after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* cursor: url(images/cloud_cursor.png),auto; */
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: #E2E1FF;
    font-family: "TW Cen MT", "Karla", "Helvetica", sans-serif;
}
.cleft{
    height:30%;
    width: auto;
    position:fixed; 
    top: 165px;
    left:-110px;
    opacity: 0.8;
    z-index:-1;
    filter:blur(2px);
}
.ctop{
    height:180px;
    width:auto;
    position:fixed;
    top:-90px;
    right: 0;
}
.cright{
    height:45%;
    width:auto;
    position: absolute;
    bottom:-100px;
    right:0;
    z-index:-1;
}
/*content*/
.wrapper{
    width:90%;
    padding:2rem;
    margin: 0 auto;
}
hr{
    border-top: 5px solid blueviolet;
    margin-top:15px;
    margin-bottom:15px;
}
.main{
    font-weight: bold;
    text-align:center;
    padding-top:18vh;
    margin-bottom:.5em;
    z-index: 1;
    font-size:5vw;
}
/* gallery */
.gallery{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 17rem);
    gap: .5rem;
}

/* gallery layout */
.gallery__item--1{
    grid-column: 1/ span 1;
    grid-row: 1/ span 2;
}
.gallery__item--2{
    grid-column: 2/ span 1;
    grid-row: 1/ span 1;
}
.gallery__item--3{
    grid-column: 2/ span 1;
    grid-row: 2/ span 1;
}
.gallery__item--4{
    grid-column: 3/ span 1;
    grid-row: 1/ span 3;
}
.gallery__item--5{
    grid-column: 1/ span 2;
    grid-row: 3/ span 2;
}
.gallery__item--6{
    grid-column: 3/ span 1;
    grid-row: 4/ span 1;
}
.gallery__item--7{
    grid-column: 1/ span 1;
    grid-row: 5/ span 1;
}
.gallery__item--8{
    grid-column: 1/ span 1;
    grid-row: 6/ span 1;
}
.gallery__item--9{
    grid-column: 2/ span 1;
    grid-row: 5/ span 2;
}
.gallery__item--10{
    grid-column: 3/ span 1;
    grid-row: 5/ span 2;
}
.gallery__item--11{
    grid-column: 1/ span 3;
    grid-row: 7/ span 1;
}
/* gallery link */
.gallery__link{
    position: relative;
    display: block;
    width:100%;
    height:100%;
    overflow: hidden;
}

/* gallery link overlay */
.gallery__overlay{
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 0.3);

    opacity:0;
    pointer-events: none;
    transition: opacity .2s;
}

.gallery__link:hover .gallery__overlay{
    opacity: 1;
}

/* gallery image */
.gallery__image{
    width:100%;
    height:100%;
    object-fit: cover;
    cursor: url(images/sparkles_cursor.png),auto;
    transform:scale(1.05);
    transition: 
        transform .5s;
        filter .5s;
}

.gallery__link:hover .gallery__image{
    transform: scale(1.12);
    filter: blur(.5px);
}

/* popup lightbox*/
.closepopup{
    font-size: 4vw;
    font-weight:bold;
    color:#E2E1FF;
    position:fixed;
    top:6%;
    right:6%;
    cursor: pointer;
    z-index:4;
    background-color: rgba(204, 41, 41, 0);
}
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.95);
    overflow:auto;
    box-sizing: border-box;
}
.popup-content{
    width:85%;
    height:80vh;
    margin:auto;
    position:relative;
    top:10%;
}
.slides{
    display:none;
    width:85%;
    height:80vh;
    margin-left:auto;
    margin-right:auto;
    box-sizing: border-box;
    background-color: #E2E1FF;
}
.protector{
    position:fixed;
    z-index:1;
    height:90vh;
    width:100%;
    opacity:0;
}
.slides img{
    float:left;
    margin-right:10px;
    height:80vh;
    overflow:auto;
}
.slides p{
    font-size: 20px;
    color:#6a66d3;
}
.prev,
.next {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-size: 30px;
  font-weight:bold;
  user-select: none;
  -webkit-user-select: none;
  z-index:3;
}
.prev{
    left: 5%;
}
.next {
    right: 5%;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 800px) {
    .gallery{
    display:block;
    }
    
    .gallery__item{
        margin: .5rem;
    }

    .slides img{
        width:100%;
        height:auto;
    }

    .slides p{
        margin:10px;
    }
    .closepopup{
        font-size: 6vw;
    }
  }