/* General Reset */
#gall body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container */
#gall .gallery-container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Buttons Section */
#gall .buttons {
    align-items: center;
    flex: 1;
    background: #ffffff;
    color: white;
    padding: 20px;
    flex-direction: column;
    justify-content: flex-start;
    /* box-shadow: inset -1px 0 3px rgba(0, 0, 0, 0.1); */
}

#gall .buttons button {
    width: 8rem;
    background: #181d38;
    border: none;
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    border-radius: 1rem;
    margin-right: 4px;
    margin-left: 4px;
}

#gall .buttons button:hover, .buttons button:focus {
    background: #06BBCC;
    outline: none;
    filter: drop-shadow(10px 10px 20px rgba(36, 36, 36, 0.5));
}

/* Gallery Section */
#gall .gallery {
    flex: 4;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: #ffffff;
}

#gall .gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#gall .gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox */
#gall .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#gall .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#gall .lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

/* Swipe Controls */
#gall .lightbox .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
}

#gall .lightbox .controls button {
    background: #34495e;
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

#gall .lightbox .controls button:hover {
    background: #1abc9c;
    transform: scale(1.1);
}

#gall .lightbox .controls button:active {
    background: #16a085;
    transform: scale(1);
}
