@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Rubik:wght@400;500;700&display=swap');

/* === General Body Styling === */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 20px;
  color: #1e2a3a;
  text-align: center;
  background: linear-gradient(to right, #F7FAFC 60%, #E8F6FC 100%);
  border-radius: 0px 950px;
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 59, 115, 0.08);
  position: relative;
  z-index: 1;
}

/* === Decorative Overlay (Matches Other Sections) === */
body::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 60px;
  width: 90%;
  height: 90%;
  background: #D7EEFA;
  border-radius: 150px 0 150px 0;
  transform: rotate(-2deg);
  z-index: -1;
  box-shadow: 0 0 25px rgba(0, 59, 115, 0.08);
}

/* === Headings === */
h1, h2 {
  font-size: 2.5rem;
  color: #003B73; /* Deep Rodeway Blue */
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 59, 115, 0.2);
  position: relative;
  z-index: 2;
}

/* === Back to Home Button === */
.back-to-home {
  position: absolute;
  top: 20px;
  right: 30px;
  padding: 12px 25px;
  background: linear-gradient(to right, #00AEEF, #003B73); /* Sky Blue to Deep Blue */
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.back-to-home:hover {
  background: linear-gradient(to right, #003B73, #00AEEF); /* Reverse gradient on hover */
  transform: scale(1.05);
}

/* === Gallery Section === */
.luxury-gallery {
  column-count: 3;
  column-gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  z-index: 2;
}

/* === Logo Styling === */
.logo-control {
  display: inline-block;
  width: 220px; /* Increased width */
  height: auto;
  max-width: 90%; /* Responsive limit */
  margin: 0 auto;
  padding: 10px 10px;
  border-radius: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  display: block; /* Ensure logo is a block element for centering */
}

.logo-control:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 59, 115, 0.25);
}

/* === Gallery Items === */
.luxury-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  break-inside: avoid;
  box-shadow: 0 8px 20px rgba(0, 59, 115, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luxury-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 59, 115, 0.25);
}

/* === Gallery Images === */
.luxury-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.luxury-item:hover img {
  transform: scale(1.05);
}

/* === Caption Overlay === */
.luxury-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 59, 115, 0.65); /* Transparent Blue Overlay */
  backdrop-filter: blur(5px);
  color: #ffffff;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 20px 20px;
}

.luxury-item:hover .luxury-caption {
  opacity: 1;
}

.luxury-caption h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #00AEEF; /* Sky Blue Accent */
}

.luxury-caption p {
  font-size: 14px;
  margin: 5px 0;
}

/* === View More Button === */
.luxury-btn {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  background-color: rgba(0, 174, 239, 0.4);
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s ease;
}

.luxury-btn:hover {
  background-color: rgba(0, 59, 115, 0.7);
}

/* === Responsive Adjustments === */
@media (max-width: 1024px) {
  .luxury-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .luxury-gallery {
    column-count: 1;
  }

  /* Adjust Back to Home Button Position for Mobile */
  .back-to-home {
    position: relative;
    margin-top: 10px;
	 margin-bottom: 50px;
	
    right: auto;
    left: auto;
    width: auto; /* Ensure button has proper width on small screens */
    padding: 10px 20px; /* Slightly smaller padding */
    font-size: 14px; /* Adjust font size */
    display: inline-block; /* Ensure button is aligned properly */
    margin-left: auto;
    margin-right: auto;
  }

  /* Adjust logo on mobile */
  .logo-control {
    width: 200px;
    padding: 8px 15px;
    border-radius: 15px;
  }
}
