body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
}

.full-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative; 
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 2px;
    background-color: #CC050D;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center 90%;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 90%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

.modal-content {
  position: relative;
  width: 100%;
  max-height: 80vh; 
  object-fit: contain;
  max-width: 100%; 
}

.close {
  position: absolute; 
  top: 10px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  background-color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;  
}

.close:hover {
  background-color: #CC050D;
}

.modal:focus {
  outline: none;
}

.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 1rem;
}

.back-to-home {
    text-align: center;
    margin: 20px 0;
}

.button {
    font-size: 1.5rem;
    padding: 7px 15px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #CC050D;
}

.footer p {
    margin: 5px 0;
}

.footer p:first-of-type {
    font-weight: bold;
}

.footer a {
    text-decoration: none;
    color: #9b9b9b;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer a:hover {
    color: #CC050D;
    text-decoration: underline;
}

.footer a:focus {
    outline: none;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item img {
        height: 180px;
        pointer-events: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .button {
        font-size: 1.2rem;
        padding: 5px 10px;
    }
    .modal {
      display: none !important; 
    }   
}