* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.profile-gal-background {
    height: 500px;
    width: 100%;
    background-image: linear-gradient(rgba(9, 0, 77, 0.5), rgba(9, 0, 77, 0.3)),
      url(../asset/image/fotostruktural/labmcu/galeribg.png);
    background-size: cover;
    background-position: center;
  }

.gallery-container {
    text-align: center;
    padding: 20px;
    margin-top: 100px;
    margin-bottom: 100px
}

h1 {
    font-family: "Ubuntu", serif;
    color: #042642;
    font-size: 50px;
    margin-bottom: 50px !important;
}

h2 {
    font-family: "Ubuntu", serif;
    color: #042642;
    font-size: 40px;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}


/* Gallery Styles */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
    /* Transisi untuk filter dan transform */
    filter: brightness(1);
    /* Brightness default */
}

.gallery-item img:hover {
    filter: brightness(1.3);
    /* Tingkatkan kecerahan */
    transform: scale(1.05);
    /* Opsional: Perbesar sedikit gambar */
}


/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-image {
    max-width: 80%;
    /* Gambar hanya menggunakan maksimal 80% lebar layar */
    max-height: 70%;
    /* Gambar hanya menggunakan maksimal 70% tinggi layar */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.modal-nav button {
    border: none;
    padding: 30px 35px;
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    transition: color 0.2s ease-in-out;
    background: none;
}

.modal-nav button:hover {
    background: none;
    color: orange;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: red;
}