@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1
    }

    to {
        opacity: 0
    }
}


@keyframes scaleDown {
    0% {
        transform: scale(1);
        opacity: 0
    }

    to {
        transform: scale(.8);
        opacity: 1
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.fading-out {
    animation: fadeOut 0.2s ease forwards;
}

.fading-in {
    animation: fadeIn 0.3s ease forwards;
}

.slide-right {
    animation: slideInRight 0.3s ease forwards;
}
l
.slide-left {
    animation: slideInLeft 0.3s ease forwards;
}

.box h2 {
    margin: 0 auto;
    width: 100%
}

.box h2,.box p {
    text-align: center
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0
}

#page {
    max-width: 1200px
}

#content {
    display: flex;
    justify-content: center;
    font-size: 16px;
    padding: 0;
    width: 615px;
    margin: 0 auto;
}

.photo-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    margin-top: 20px
}

.photo-item,.photo-item img {
    transition: transform .3s ease
}

.photo-item {
    aspect-ratio: 2/3;
    width: 300px;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: #000;
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}        
#background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5);
    opacity: 0;
    transition: opacity 0.6s ease, background-image 0.3s ease;
    z-index: -10;
}

.photo-item:hover {
    transform: scale(1.10);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.photo-item:hover .caption {
    opacity: 1
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px
}

.category-button {
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #444;
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color .3s ease
}

.category-button.active,.category-button:hover {
    background-color: #666
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.9);
    animation: fadeIn .3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%
}

.modal-image {
    max-width: 85%;
    max-height: 85%;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(255,255,255,.1);
    
    animation: scaleUp .3s ease
    
}

.modal-caption {
    margin-top:5px;
    color: #fff;
    font-size: 18px;
    
}

.modal-description {
    color: #ccc;
    max-width: 600px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px
}

.close-modal,.modal-nav {
    position: absolute;
    color: #fff;
    cursor: pointer;
    transition: color .3s ease
}

.close-modal {
    top: 20px;
    right: 30px;
    font-size: 30px
}

.close-modal:hover,.modal-nav:hover {
    color: #999
}

.modal-nav {
    font-size: 40px;
    top: 50%;
    transform: translateY(-50%)
}

.prev-photo {
    left: 30px
}

.next-photo {
    right: 30px
}

@media (max-width:1200px) {
    .photo-container {
        grid-template-columns: repeat(3,1fr)
    }
}

@media (max-width:768px) {
    .photo-container {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:480px) {
    .photo-container {
        grid-template-columns: repeat(1,1fr)
    }
}

* {
    margin: 0;
    padding: 0
}

a {
    text-decoration: underline;
    color: #2a3436
}

a:hover {
    text-decoration: none
}

body {
    position: relative;
    background-color: #314459; /* Default background as fallback */
    line-height: 1.75em;

    font-size: 11.5pt;
    color: #1b1e1f
}

body,input {
    font-family: Kreon,serif
}

br.clearfix {
    clear: both
}

h1,h2,h3,h4 {
    text-transform: uppercase;
    font-weight: 400
}

h2 {
    font-size: 1.5em
}

h2,h3,h4 {
    font-family: "Open Sans",sans-serif;
    color: #2a3436;
    margin-bottom: 1em
}

h3 {
    font-size: 1.25em
}

h4 {
    font-size: 1em
}

img.alignleft {
    float: left;
    margin: 5px 30px 20px 0
}

img.aligntop {
    margin: 5px 0 20px
}

p,ul {
    margin-bottom: 1.5em
}

ul h4 {
    margin-bottom: .35em
}

.box {
    margin: 0 0 50px
}

#footer {
    display: table;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0 60px;
    text-shadow: 1px 1px 0 rgba(255,255,255,.7)
}

#footer,#footer a {
    color: #587477
}

#header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 0; /* Ensure no extra space */
    padding: 0px;
    position: relative
}

#logo {
    position: absolute;
    top: 10px;
    left: 30px;
    height: 130px;
    line-height: 130px
}

#logo a,#menu a {
    color: #2a3436;
    text-decoration: none
}

#logo h1,#menu {
    font-family: "Open Sans",sans-serif
}

#logo h1 {
    font-size: 3em
}

#menu {
    line-height: 57px;
    position: absolute;
    right: 40px;
    top: 50px;
    height: 57px
}

#menu a {
    text-transform: uppercase;
    color: #1c1c1c;
    font-size: 1.2em
}

#menu ul {
    padding: 0 20px
}

#menu ul li {
    display: inline;
    padding: 10px;
    margin: 0 8px
}

#menu ul li.active {
    border: solid 1px #bfb5a4
}

#menu ul li.active a {
    color: #403b31
}

#page {
    margin: 0;
    position: relative;
    width: 900px;
    padding: 20px 40px 0
}

#page .section-list {
    padding-left: 0;
    list-style: none
}

#page .section-list li {
    padding: 25px 0;
    clear: both
}

#menu ul,#page ul,#page-bottom ul {
    list-style: none
}

#page ul li {
    border-top: solid 1px #ddd;
    padding: 10px 0
}

#menu ul li.active,#page-bottom {
    background: #f2ebde;
    box-shadow: inset 0 0 0 1px #fff;
    text-shadow: 1px 1px 0 rgba(255,255,255,.9)
}

#page-bottom {
    padding: 20px 40px 0;
    color: #302f2c;
    position: relative;
    width: 898px;
    height: 230px;
    border-top: solid 1px #bfb5a4;
   
}

#page-bottom a {
    color: #1b1a18
}

#page-bottom h2,#page-bottom h3,#page-bottom h4 {
    color: #3f3d39
}

#page-bottom ul li {
    border-top: solid 1px #bab5ab;
    padding: 10px 0
}

#page ul li.first,#page-bottom ul li.first {
    border-top: 0;
    padding-top: 0
}

#page-bottom-content {
    width: 615px;
    margin: 0px 200px 200px 200px
}

#page-bottom-sidebar,#sidebar {
    float: left;
    width: 150px
}



#wrapper {
    width: 978px;
    position: relative;
    background: rgba(255, 255, 255, 0.6); /* More transparent base */
    margin: 0 auto;
    box-shadow: 0 0 150px 0 rgba(0, 0, 0, 0.15);
    border: solid 1px #314459;
    border-top: 0;
    backdrop-filter: blur(5px);
}