.gallery {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32%;
}

.gallery-item-vert {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16%;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.disclaimer {
    text-align: left;
    margin: 12px 0 24px 20px; /* space below title, aligns with title's left padding */
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.158);
    color: #e9e9e9;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: 'Bahnschrift', sans-serif;
}


.description {
    font-weight: 600;
    color: #f0f0f0;
    padding-top: 8px;
    text-align: center;
    width: 100%;
}

.description-bg {
    display: inline-block;
    background: rgba(46, 46, 46, 0.25); /* semi-transparent white */
    border-radius: 6px;
    padding: 12px 18px;
    margin-top: 8px;
    margin-bottom: 8px;
    backdrop-filter: blur(16px); /* The blur effect */
    -webkit-backdrop-filter: blur(16px); /* For Safari */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Optional: subtle shadow */
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
}



body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('Images/backgroundForWebsite.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
}

h1 {
    background: rgba(32, 32, 32, 0.473);
    text-align: left;
    color: rgb(240, 240, 240);
    font-size: 3em;
    margin-top: 20px;
    padding-left: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 2em;
    margin-top: 20px;
    padding-left: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
img {
    -webkit-user-drag: none;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 16px 0;
    color: rgb(158, 158, 158);
    background: rgba(32, 32, 32, 0.473); /* Optional: makes footer stand out */
}


/* Image modal styles */
#image-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#image-modal img {
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
    border-radius: 12px;
}
#close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3em;
    color: white;
    cursor: pointer;
    z-index: 10000;
}



body.mobile-device .gallery {
    flex-direction: column;
    gap: 16px;
    padding-left: 8px;
    padding-right: 8px;
}

body.mobile-device .gallery-item,
body.mobile-device .gallery-item-vert {
    width: 100%;
    max-width: 100%;
}

body.mobile-device h1,
body.mobile-device h2 {
    font-size: 2em;
    padding-left: 8px;
    padding-right: 8px;
}

body.mobile-device .description {
    font-size: 1em;
    padding-left: 4px;
    padding-right: 4px;
}

body.mobile-device footer {
    font-size: 1em;
    padding: 8px 0;
}