@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+Pro:wght@400;600&display=swap');

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  box-sizing: border-box;

background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 60'%3E%3Cg %3E%3Crect fill='%23CC2024' width='11' height='11'/%3E%3Crect fill='%23cb2023' x='10' width='11' height='11'/%3E%3Crect fill='%23c91f23' y='10' width='11' height='11'/%3E%3Crect fill='%23c81f22' x='20' width='11' height='11'/%3E%3Crect fill='%23c71f22' x='10' y='10' width='11' height='11'/%3E%3Crect fill='%23c61e21' y='20' width='11' height='11'/%3E%3Crect fill='%23c41e21' x='30' width='11' height='11'/%3E%3Crect fill='%23c31e20' x='20' y='10' width='11' height='11'/%3E%3Crect fill='%23c21d20' x='10' y='20' width='11' height='11'/%3E%3Crect fill='%23c11d1f' y='30' width='11' height='11'/%3E%3Crect fill='%23c01d1f' x='40' width='11' height='11'/%3E%3Crect fill='%23be1c1e' x='30' y='10' width='11' height='11'/%3E%3Crect fill='%23bd1c1e' x='20' y='20' width='11' height='11'/%3E%3Crect fill='%23bc1c1d' x='10' y='30' width='11' height='11'/%3E%3Crect fill='%23bb1b1c' y='40' width='11' height='11'/%3E%3Crect fill='%23b91b1c' x='50' width='11' height='11'/%3E%3Crect fill='%23b81b1b' x='40' y='10' width='11' height='11'/%3E%3Crect fill='%23b71a1b' x='30' y='20' width='11' height='11'/%3E%3Crect fill='%23b61a1a' x='20' y='30' width='11' height='11'/%3E%3Crect fill='%23b41a1a' x='10' y='40' width='11' height='11'/%3E%3Crect fill='%23b31919' y='50' width='11' height='11'/%3E%3Crect fill='%23b21919' x='60' width='11' height='11'/%3E%3Crect fill='%23b11918' x='50' y='10' width='11' height='11'/%3E%3Crect fill='%23b01818' x='40' y='20' width='11' height='11'/%3E%3Crect fill='%23ae1817' x='30' y='30' width='11' height='11'/%3E%3Crect fill='%23ad1717' x='20' y='40' width='11' height='11'/%3E%3Crect fill='%23ac1716' x='10' y='50' width='11' height='11'/%3E%3Crect fill='%23ab1716' x='70' width='11' height='11'/%3E%3Crect fill='%23a91615' x='60' y='10' width='11' height='11'/%3E%3Crect fill='%23a81615' x='50' y='20' width='11' height='11'/%3E%3Crect fill='%23a71614' x='40' y='30' width='11' height='11'/%3E%3Crect fill='%23a61514' x='30' y='40' width='11' height='11'/%3E%3Crect fill='%23a51513' x='20' y='50' width='11' height='11'/%3E%3Crect fill='%23a31513' x='80' width='11' height='11'/%3E%3Crect fill='%23a21412' x='70' y='10' width='11' height='11'/%3E%3Crect fill='%23a11412' x='60' y='20' width='11' height='11'/%3E%3Crect fill='%23a01411' x='50' y='30' width='11' height='11'/%3E%3Crect fill='%239f1311' x='40' y='40' width='11' height='11'/%3E%3Crect fill='%239e1310' x='30' y='50' width='11' height='11'/%3E%3Crect fill='%239c1310' x='90' width='11' height='11'/%3E%3Crect fill='%239b120f' x='80' y='10' width='11' height='11'/%3E%3Crect fill='%239a120f' x='70' y='20' width='11' height='11'/%3E%3Crect fill='%2399110e' x='60' y='30' width='11' height='11'/%3E%3Crect fill='%2398110e' x='50' y='40' width='11' height='11'/%3E%3Crect fill='%2396110d' x='40' y='50' width='11' height='11'/%3E%3Crect fill='%2395100d' x='90' y='10' width='11' height='11'/%3E%3Crect fill='%2394100c' x='80' y='20' width='11' height='11'/%3E%3Crect fill='%2393100c' x='70' y='30' width='11' height='11'/%3E%3Crect fill='%23920f0b' x='60' y='40' width='11' height='11'/%3E%3Crect fill='%23910f0b' x='50' y='50' width='11' height='11'/%3E%3Crect fill='%238f0e0a' x='90' y='20' width='11' height='11'/%3E%3Crect fill='%238e0e0a' x='80' y='30' width='11' height='11'/%3E%3Crect fill='%238d0e09' x='70' y='40' width='11' height='11'/%3E%3Crect fill='%238c0d08' x='60' y='50' width='11' height='11'/%3E%3Crect fill='%238b0d08' x='90' y='30' width='11' height='11'/%3E%3Crect fill='%238a0d07' x='80' y='40' width='11' height='11'/%3E%3Crect fill='%23880c07' x='70' y='50' width='11' height='11'/%3E%3Crect fill='%23870c06' x='90' y='40' width='11' height='11'/%3E%3Crect fill='%23860b06' x='80' y='50' width='11' height='11'/%3E%3Crect fill='%23850B05' x='90' y='50' width='11' height='11'/%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;
}

/* Typography */
h1 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
    padding: 0 20px;
    color: white;
}

.well {
    font-size: 20px;
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 40px;
    text-align: center;
    line-height: 1.6;
    color: white;
}

/* Navigation & Logo */
.logo {
    position: absolute;
    top: 20px;
    left: 30px;
    max-height: 60px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.back-to-home {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 12px 25px;
    background-color: white;
    color: #CC2024;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.back-to-home:hover {
    background-color: #CC2024;
    color: white;
    transform: scale(1.05);
    outline: 2px solid white; /* Adds a border effect on hover */
}

.hover-link {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.hover-link:hover {
    opacity: 0.8;
}

/* Main Header Section */
.main-header {
    padding-top: 120px; /* Space for the logo and home button */
}

/* Luxury Gallery */
.luxury-gallery {
    /* Removed column-count and column-gap */
    display: flex; /* Changed to flexbox */
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 20px; /* Provides spacing between items both horizontally and vertically */
    margin: 0 auto;
    padding: 40px;
    justify-content: center; /* Centers items horizontally within the gallery */
}

.luxury-item {
    /* Removed display: inline-block and break-inside: avoid */
    width: calc((100% - 40px) / 3); /* Adjusted for 3 items per row with 20px gaps */
    margin: 0; /* Remove previous vertical margins as gap handles spacing */

    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luxury-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.luxury-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.luxury-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(204, 32, 36, 0.8); /* #CC2024 with transparency */
    backdrop-filter: blur(5px);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.luxury-item:hover .luxury-caption {
    opacity: 1;
}

.luxury-caption h3,
.luxury-caption p {
    margin: 0;
    padding: 0;
}

.luxury-caption h3 {
    font-size: 20px;
    font-weight: 600;
}

.luxury-caption p {
    font-size: 14px;
    margin-top: 5px;
}

.luxury-btn {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.luxury-btn:hover {
    background-color: white;
    color: #CC2024;
}

/* Responsive Adjustments for flexbox */
@media (max-width: 1024px) {
    .luxury-item {
        width: calc((100% - 20px) / 2); /* For 2 columns, with 1 * 20px gap */
    }
}

@media (max-width: 768px) {
    .back-to-home {
        padding: 10px 20px;
        font-size: 14px;
        top: 20px;
        right: 20px;
    }
    .logo {
        max-height: 50px;
        top: 20px;
        left: 20px;
    }
     .main-header {
        padding-top: 100px;
    }
}

@media (max-width: 600px) {
    .luxury-item {
        width: 100%; /* For 1 column, full width */
    }
}