body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #2B2C38;
    color: white;
    /*font-family: "Outfit", sans-serif !important;*/
}

.midnight-dark{
    background-color: #252635;
}
.midnight-dust{
    background-color: #2B2C38;
    color: white;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: papayawhip;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #c5b5a5;
}

/* For Album Gallery */
/*****************************************************/
.album-wrapper{
    box-shadow: rgba(0, 0, 0, 1.3) 0px 9px 20px -7px;
    transition: 0.5s;
    border-radius: 0.5rem;
}
.album-wrapper:hover{
    cursor: pointer;
    box-shadow: rgb(255 239 213 / 32%) 0px 9px 20px -7px;
    /*transform:scale(1.005);*/
}
.album{
    width: 18rem;
    background-color: #323232;
}
.album h5{
    color: papayawhip;
}

.album p {
    color: #FFFFFF8C;
}

.album img {
    filter: grayscale(0.33);
    transition: filter 0.3s ease;
}

.album-wrapper:hover img {
    filter: grayscale(0);
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    content: "";
    display: block;
    height: 100%;
    left: -100%;
    position: absolute;
    top: 0;
    transform: skewX(-25deg);
    width: 50%;
    z-index: 2;
}

.shine:hover::before,
.shine:focus::before {
    animation: shine 1s;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

/*****************************************************/


/* For Image Gallery */
/*****************************************************/
.main {
    position: relative;
    height: auto;
    width: 100%;
    margin-bottom: 2rem;
}
.main h1 {
    position: relative;
    height: auto;
    width: 500px;
    left: 50%;
    transform: translateX(-50%);
    margin: 5% 0 5% 0;
    font-size: 2.8em;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1.5px;
    border-left: 5px solid papayawhip;
    border-right: 5px solid papayawhip;
    color: papayawhip;
}
.main .gallery {
    position: relative;
    height: 100%;
    width: 75%;
    margin: auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    grid-auto-rows: 250px; /* Base row height for consistent spans */
    grid-gap: 2vh;
    grid-auto-flow: dense;
}
.main .gallery .gallery-item {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
    border-radius: 2px;
}

/* Every odd item spans 2 rows (taller) */
.main .gallery .gallery-item:nth-child(odd) {
    grid-row: span 2;
}

/* Every even item spans 1 row (normal height) */
.main .gallery .gallery-item:nth-child(even) {
    grid-row: span 1;
}

.main .gallery .gallery-item:nth-child(4n) {
    /*grid-column: span 2;*/
}

.main .gallery .gallery-item img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9) grayscale(0.2);
    transition: ease-in-out 0.3s ;
}
.main .gallery .gallery-item:hover img {
    filter: brightness(1);
}
.gallery-item {
    transition: transform .25s;
}
.gallery-item:hover {
    transform: scale(1.01);
}

.carousel-inner {
    border-radius: 0.5rem;
}

.btn-pic-delete{
    position: relative;
    display: inline-block;
    border: none;
    padding: 0;
    background: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

.btn-pic-delete img {
    display: block;
    margin: 0 auto; /* center image horizontally */
    max-height: 10rem;
    max-width: 10rem;
}

.btn-pic-delete span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(115 0 0 / 65%);
    color: papayawhip;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-pic-delete:hover span {
    opacity: 1;
}

.swal-img-responsive {
    max-width: 90%;      /* Make it responsive */
    height: auto;        /* Maintain aspect ratio */
    border-radius: 0.5rem;
}

/* Screens up to 1400px wide */
@media only screen and (max-width: 1400px){
    .main .gallery {
        display: grid;
        width: 85%;
        grid-template-columns: repeat(3, 1fr); /* 4 equal columns */
    }
}

/* Screens up to 768px wide */
@media only screen and (max-width: 768px){
    .main h1 {
        font-size: 2.2rem;
        width: 400px;
    }
    .main .gallery {
        display: grid;
        width: 85%;
        grid-template-columns: repeat(2, 1fr); /* 4 equal columns */
    }
}
/* Screens up to 425px wide */
@media only screen and (max-width: 425px){
    .main h1 {
        font-size: 1.2rem;
        width: 300px;
    }
    .main .gallery {
        display: block;
        width: 90%;
    }
    .main .gallery .gallery-item {
        display: block;
        height: 100%;
        width: 100%;
        margin: 1rem 0;
    }
    .main .gallery .gallery-item img{
        display: block;
        height: 100%;
        width: 100%;
        filter: brightness(1);
    }
}
/*****************************************************/
