* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* Body Styling */
body {
    background-color: #21222b;
}

/* Navigation Menu */
ul {
    text-decoration: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    background-color: #dbdbdb;
    min-height: 7vh;
    box-sizing: border-box;
    align-items: center;
    letter-spacing: 3px;
    font-size: 14px;
    word-spacing: 100px;
    font-weight: bold;
    color: #21222b;
}

@media screen and (max-width: 320px) {
    ul {
        font-size: 12px;
    }
}

/* Logo */
.logo {
    max-height: 3vh; /* Consistent max height */
    height: 3vh; /* Ensures consistent height across all pages */
    width: auto; /* Maintains aspect ratio */
    color: #dbdbdb;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 25px; /* Consistent font size */
    text-align: center;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo2 {
    max-height: 3vh; /* Consistent max height */
    height: 3vh; /* Ensures consistent height across all pages */
    width: auto; /* Maintains aspect ratio */
    color: #dbdbdb;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 12px; /* Consistent font size */
    text-align: center;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo h1 {
    font-size: 2rem; /* Consistent font size */
    color: #dbdbdb;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    line-height: 7vh; /* Matches the logo container height */
}

.container .logo, .header .logo {
    font-size: 25px;
    margin: 0.5rem 0;
}

/* Gallery Text */
.gallery-txt {
    color: #dbdbdb;
    width: 150px;
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main-container img {
    width: 70%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
}

.main-container p {
    text-align: center;
    color: #dbdbdb;
    width: 330px;
    font-size: 22px;
    text-transform: uppercase;
    line-height: 50px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

@media screen and (max-width: 480px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1px;
        padding-left: 4.5%;
    }
}

/* Shop Page */
.comingsoon h1 {
    text-align: center;
    font-size: 3rem;
    color: #dbdbdb;
}

/* Contact Page */
.contactimg img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 100%;
    padding-top: 20px;
    max-width: 50vh;
}

.contactimg h2 {
    color: #dbdbdb;
    font-size: 25px;
    text-transform: uppercase;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 20%;
    text-align: center;
    margin-top: 10px;
}

.contactimg {
    display: block;
    padding-top: 10px;
    height: auto;
    justify-content: center;
}

@media only screen and (max-width: 480px) {
    .contactimg h2 {
        width: 50%;
    }
}

/* Portfolio Page */
.container {
    text-align: center;
    font-size: 25px;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.container h1 {
    font-weight: normal;
    font-size: 30px;
    color: #D4AF37;
    text-transform: uppercase;
}

@media screen and (max-width: 480px) {
    .container h1 {
        padding-right: 88px;
    }
}

/* Overlay */
.overlay {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
    transition: 0.5s ease;
    background-color: rgba(0, 0, 0, 0.733);
    height: 50%;
    text-transform: uppercase;
}

.overlay h1 {
    width: 100%;
    margin-top: 30%;
    color: #dbdbdb;
    font-size: 2vw;
    position: absolute;
    text-align: center;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    width: 80%;
    margin: 0 auto;
    justify-content: center;
}

.gallery__item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    max-height: 50vh;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery__item img:hover {
    transform: scale(1.1);
}

@media (max-width: 950px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    width: 50%;
    object-fit: cover;
    animation: zoom 0.3s ease-in-out;
}

@media screen and (max-width: 320px) {
    .modal img {
        width: 90%;
    }
}

.closeBtn {
    position: absolute;
    top: 20px; /* Adjust for a more visually pleasing position */
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1101; /* Ensure above modal elements */
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.closeBtn::before {
    content: "×"; /* Fallback for close icon if Font Awesome fails */
    font-size: 2rem;
    color: rgb(255, 255, 255);
}

.closeBtn:hover {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.5);
}

/* Animations */
@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive Gallery Adjustments */
@media screen and (max-width: 480px) {
    .gallery__item img {
        padding: 10px;
    }
}

