body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;

    background-image: url(../img/Decoration/maxresdefault.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 40px;
}

.key-button {
    background: #7b5e57;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
}

.page-title {
    background: #7b5e57;
    padding: 10px 40px;
    border-radius: 20px;
    font-size: 20px;
    
}

.corner-icon {
    width: 60px;
}

.card {
    text-align: center;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.card figcaption {
    background: white;
    color: black;
    padding: 5px;
    border-radius: 6px;
    text-align: center;
    margin-top: 5px;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  justify-items: center;
}


dialog {
    padding: 2rem;
    border: none;
    border-radius: 16px;
    max-width: 80vw;
}

dialog::backdrop {
    background: rgb(16 16 16 /0.8);
}

dialog img {
  width: 70vw;
  max-width: 900px;
  max-height: 83vh;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

dialog figure {
    margin: 0;
    text-align: center;
}


dialog figcaption {
    background: white;
    color: black;
    padding: 12px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    opacity: 1;
    text-align: center;
}

.fade-title {
    opacity: 0;
    animation: fadeInTitle 1.5s ease forwards;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.gallery-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    opacity: 0.5;
}



@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}




