/* Portfolio container */
.portfolio-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 50px;
    opacity: 90%;
    text-align: center; /* Ensures all text is centered */
}
.portfolio-container h1 {
    font-family: "the-seasons", sans-serif;
    font-size: 3em;
    font-weight: 300;
    padding-left: 0; /* Remove any unnecessary padding */
    text-align: center; /* Center the heading */
}

.portfolio-container h2 {
    font-family: "the-seasons", sans-serif;
    font-size: 2.5em;
    font-weight: 300;
    text-align: center; /* Center the title */
}

.portfolio-container h3 {
    font-family: "basic-sans", sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    text-align: center; /* Center the information */
}

.portfolio-container h4 {
    font-family: "basic-sans", sans-serif;
    font-size: 1.3em;
    font-weight: 300;
    padding-left: 0; /* Remove any unnecessary padding */
    text-align: center; /* Center the caption */
}

.portfolio-container p {
    font-family: "basic-sans", sans-serif;
    font-size: 1.4em;
    font-weight: 300;
    padding-left: 50px;
    padding-right: 20px;
    line-height: 150%;
    text-align: center; /* Center the paragraph */
}

.portfolio-text h2 {
    font-family: "the-seasons", sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    text-align: center; /* Center the subheading */
}

/* Journalism page */
.journalism-container a {
    font-family: "basic-sans", sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    text-decoration: none;
    color: black;
}

.journalism-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create two equal columns */
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 85px;
}

.journalism-container h2 {
    font-family: "the-seasons", sans-serif;
    font-size: 2em;
    font-weight: 300;
    text-align: center; /* Center the heading */
}

/* Portfolio item */
.journalism-item {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 500px;
    margin: 0 auto; /* Center the item */
}

.journalism-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.journalism-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Case study page */
.casestudy-container a {
    font-family: "basic-sans", sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    text-decoration: none;
    color: black;
}

.casestudy-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create three equal columns */
    gap: 30px;
    padding: 20px;
    padding-right: 85px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 85px;
}

.casestudy-container h2 {
    font-family: "the-seasons", sans-serif;
    font-size: 2em;
    font-weight: 300;
    text-align: center; /* Center the heading */
}

/* Photo container */
.photo-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 45px;
}

.photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1.15);
}

/* Portfolio gallery container */
.portfoliogallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible columns */
    gap: 15px; /* Space between items */
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    justify-items: center; /* Centers items horizontally */
    align-items: center; /* Centers items vertically */
    text-align: center; /* Ensures any text is centered too, if applicable */
}
.portfoliogallery-container img {
    width: 100%;
    height: auto;
    flex-grow: 1;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {

    /* Portfolio container adjustments */
    .portfolio-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio-container h1,
    .portfolio-container h4,
    .portfolio-container h3,
    .portfolio-container p {
        font-size: 1.5em; /* Adjust font size for smaller screens */
        text-align: center; /* Ensure text is centered */
        padding-left: 0;
        padding-right: 0;
    }

    .portfolio-container h2 {
        font-size: 3em; /* Adjust font size for smaller screens */
        text-align: center; /* Ensure text is centered */
        padding-left: 0;
        padding-right: 0;
    }

    /* Journalism container grid for mobile */
    .journalism-container {
        grid-template-columns: 1fr; /* One column layout on small screens */
        padding-left: 20px;
        padding-right: 20px;
    }

    .journalism-item {
        max-width: 100%; /* Allow items to take full width on small screens */
        margin: 0 auto;
    }

    /* Case study container adjustments */
    .casestudy-container {
        grid-template-columns: 1fr; /* One column layout on small screens */
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Portfolio gallery container adjustments */
    .portfoliogallery-container {
        grid-template-columns: 1fr; /* One column layout on small screens */
    }

    /* Photo container adjustments */
    .photo-container {
        height: 250px; /* Reduce height for smaller screens */
    }

    .photo-container img {
        transform: scale(1); /* Remove scaling on mobile */
    }
}


/* enlarged image */    /* enlarged image */    /* enlarged image */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999; /* Ensures it appears on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enables scrolling if necessary */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
}

#modal-caption {
    color: white;
    font-size: 1.2em;
    text-align: center;
    font-family: "basic-sans", sans-serif;
    max-width: 90%;
    margin: 10px auto;
    word-wrap: break-word;
    display: block;
    margin-top: 730px; /* Space between image and caption */
    z-index: 1001;
}

/* Center the modal image */
.modal-content {
    max-width: 80%; /* Allow some padding on the sides */
    max-height: 80%; /* Allow some padding at the top and bottom */
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    object-fit: contain; /* Ensures the image fits while preserving aspect ratio */
    border-radius: 10px; /* Optional rounded corners */
    opacity: 100%;
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: none;
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 1001;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}
/* Zoom animation */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

/* Ensure images fit within mobile screens */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }
}


.filter-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    color: black;
    border: 1px;
    cursor: pointer;
    font-size: 16px;
    font-family: "basic-sans", sans-serif;
    border-radius: 5px;
    font-weight: 200;
    background-color: #d4d4cc;
}

.filter-btn:hover {
    background-color: rgb(238, 223, 223); /* Hover effect */
}

.filter-btn.active {
    background-color: rgb(238, 223, 223); /* Active background color */
    color: black; /* Active text color */
}

