body {
    font-family: 'Source Sans Pro', sans-serif;
}

.site-header {
    background-color: #4277ac;
    padding: 20px 0;
    color: white;
}

.site-header .logo {
    max-width: 150px;
}

.grid-gallery {
    max-width: 1170px;
    margin: 25px auto;
    padding: 0;
}

.grid-gallery .grid-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #fff;
    transition: transform .25s ease, opacity .25s ease;
    cursor: pointer;
}

.grid-gallery .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transition: transform .25s ease, filter .25s ease;
}

.grid-gallery .grid-item:hover img {
    transform: scale(1.05);
}

.grid-gallery .grid-item .caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 1;
}

.grid-gallery .grid-item .caption h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.grid-gallery .grid-item .caption p {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.grid-item.expanded img {
    filter: blur(25px);
}

.grid-item.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    padding: 0;
}

.grid-item {
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 15px;
}

.expanded-content {
    background: white;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
}

.expanded-content .call-button {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1002;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.site-footer {
    background-color: #4277ac;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.site-footer p {
    margin: 0;
}

.site-footer .social-icons {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
}

.site-footer .social-icons li {
    margin: 0 10px;
}

.site-footer .social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.site-footer .social-icons img:hover {
    transform: scale(1.2);
}

.footerlinks {
    color: #FFF;
}

.grid-item img {
    max-height: 80%;
    transition: transform .25s ease, filter .25s ease;
}

.grid-item.expanded img {
    transform: scale(1.5);
    filter: blur(25px);
}

.expanded-content {
    background: white;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow-y: auto;
    box-shadow: none;
    z-index: 1001;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1002;
}

img {
    max-height: 60vh !important;
}

@media (max-width: 1000px) {
    .grid-gallery .grid-item:hover img {
        transform: scale(10.05);
    }

    .grid-item {
        margin: 20px auto;
        padding: 10px;
        width: 90%;
        box-sizing: border-box;
    }

    .grid-item.expanded {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 90%;
        z-index: 1000;
        padding: 0;
        background: white;
        overflow: hidden;
    }

    .grid-item.expanded img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .expanded-content {
        padding: 20px;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        overflow-y: auto;
        box-shadow: none;
        z-index: 1001;
    }

    .close-button {
        top: 15px;
        right: 15px;
        font-size: 24px;
        padding: 10px;
    }

    img {
        max-height: 50vh !important;
    }
}

@media (min-width: 768px) {
    .grid-item.expanded {
        width: 70%;
    }

    img {
        max-height: 60vh !important;
    }
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.btn-primary {
    background-color: #4277ac;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background-color: #305b8c;
}

.btn-primary:active {
    background-color: #2a4b6f;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
