body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(360deg, #004687 30%, #ffffff 80%); /* Dark blue for gradient */
    margin: 0;
    padding: 20px;
    text-align: center;
    overflow-x: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    max-height: 80px;
}

.back-to-home {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFCC00; /* Yellow from the logo */
    color: #004687; /* Dark blue text */
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-to-home:hover {
    background-color: #FFE066; /* Lighter yellow on hover */
}

h1 {
    color: #004687; /* Dark blue for heading */
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out forwards;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transform: perspective(1000px);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-width: 1280px;
    max-height: 853px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #FFCC00; /* Yellow border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05) rotateX(10deg) rotateY(-10deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Custom cursor */
.gallery-item:hover::before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ffffff;
    opacity: 0.8;
}
/* Default Logo Style */
.logo-text {
  font-family: 'Roboto Slab', serif; /* Elegant serif font */
  font-size: 32px; /* Default size for desktop */
  font-weight: bold;
  color: #6D4C41; /* A more muted, warm brownish shade (Rosewood-like) */
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  display: inline-block; /* Ensures the logo is treated as a block element, allowing adjustments */
  padding: 5px 0; /* Adds padding to prevent the text from being too close to the edges */
}

/* Hover effect with a soft, classy accent color */
.logo-text:hover {
  color: #A67C52; /* Softer gold shade for a gentle, elegant hover effect */
  transition: color 0.3s ease-in-out;
}

/* Responsive for max-width: 820px (tablet landscape / small desktops) */
@media (max-width: 820px) {
  .logo-text {
    font-size: 28px; /* Adjusted font size for slightly smaller tablets and small desktops */
    letter-spacing: 1.5px;
    padding: 4px 0;
  }
}

/* Responsive for max-width: 580px (tablets and some larger mobile devices) */
@media (max-width: 580px) {
  .logo-text {
    font-size: 26px; /* Further reduction for medium devices */
    letter-spacing: 1px;
    padding: 3px 0;
  }
}

/* Responsive for max-width: 430px (larger phones / small devices) */
@media (max-width: 430px) {
  .logo-text {
    font-size: 24px; /* Smaller font size for compact devices */
    letter-spacing: 1px;
    padding: 2px 0;
  }
}

/* Responsive for max-width: 393px (very small mobile screens) */
@media (max-width: 393px) {
  .logo-text {
    font-size: 22px; /* Smallest size for very small screens */
    letter-spacing: 0.8px;
    padding: 2px 0;
  }
}
