﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #C0C0C0;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 10px auto;
    background-color: #ffffff;
    padding: 20px;
}

header {
    text-align: center;
}

.header-img {
    width: 100%;
    max-width: 820px;
    height: auto;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-content, .sidebar {
    flex: 1;
    min-width: 0;
}

.main-content {
    flex: 2;
}

.content-box {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

p {
    margin-bottom: 15px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for 3 photos per row */
    grid-template-rows: repeat(2, auto); /* 2 rows for 6 photos total */
    gap: 15px; /* Consistent spacing between images */
    margin: 20px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-width: 300px; /* Balanced image size */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover; /* Ensures images maintain aspect ratio */
    aspect-ratio: 1 / 1; /* Forces square images for consistency */
}

.gallery-item p {
    font-size: 0.9rem;
    margin-top: 8px;
}

.reviews, .disclaimer {
    text-align: center;
    font-size: 0.9rem;
}

.profile-img {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

footer {
    background-color: #d9d9d9;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-content img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 10px;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .main-content, .sidebar {
        flex: 1;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr); /* Maintain 3 columns for tablets */
        grid-template-rows: repeat(2, auto); /* Maintain 2 rows for 6 photos */
        gap: 12px; /* Slightly reduced gap for tablets */
    }

    .gallery-item img {
        max-width: 200px; /* Smaller images for tablets */
        aspect-ratio: 1 / 1; /* Maintain square images */
    }

    h1 {
        font-size: 1.2rem;
    }

    .footer-content img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr); /* Try to maintain 3 columns for small screens */
        grid-template-rows: repeat(2, auto); /* Maintain 2 rows for 6 photos */
        gap: 8px; /* Smaller gap for mobile */
    }

    .gallery-item img {
        max-width: 100px; /* Smaller images for mobile to fit 3 columns */
        aspect-ratio: 1 / 1; /* Maintain square images */
    }

    .gallery-item p {
        font-size: 0.8rem;
    }

    .info p {
        font-size: 0.8rem;
    }

    .footer-content img {
        max-width: 150px;
    }
}