.page-links-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    padding: 0
}

.page-links-menu li {
    list-style: none
}

.page-links-menu a {
    display: block;
    padding: 12px 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all .3s ease;
    text-align: center;
    border: 1px solid #eaeaea;
    font-size: 16px;
    font-weight: 500
}

.page-links-menu a:hover {
    background-color: var(--color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, .3)
}

.page-links-menu .current-menu-item a {
    background-color: var(--color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(30, 136, 229, .2)
}

@media (max-width:768px) {
    .page-links-menu a {
        padding: 8px 5px;
        font-size: 13px
    }
}

@media (max-width:480px) {
    .page-links-menu a {
        padding: 6px 2px;
        font-size: 11px
    }
}

.post-container {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    width: 100%
}

.post-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333
}

.laboratory-gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 30px
}

@media (min-width:576px) {
    .laboratory-gallery {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (min-width:992px) {
    .laboratory-gallery {
        grid-template-columns: repeat(4, 1fr)
    }
}

.laboratory-item {
    transition: all .3s ease
}

.laboratory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1)
}

.lab-image-container {
    position: relative;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer
}

.lab-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .3s ease
}

.certificate-gallery .lab-image {
    height: 350px;
    object-fit: contain;
    background-color: #f8f8f8
}

.certificate-gallery .lab-image-container {
    border: 1px solid #ddd;
    background-color: #f8f8f8
}

.page-template-page-gallery .laboratory-gallery {
    margin-bottom: 50px
}

.lab-image-container:hover .lab-image {
    transform: scale(1.05)
}

.lab-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31 ,85 ,164, .88);
    color: #fff;
    padding: 10px;
    text-align: center
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, .9);
    display: none;
    align-items: center;
    justify-content: center
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    background: 0 0;
    border: none;
    cursor: pointer;
    z-index: 10
}

.image-container {
    position: relative;
    text-align: center
}

.modal-image {
    max-height: 80vh;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3)
}

.modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700
}

.modal-description {
    color: #fff;
    text-align: center;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 40px;
    opacity: .7;
    cursor: pointer;
    transition: opacity .3s
}

.nav-button:hover {
    opacity: 1
}

.prev-button {
    left: 15px
}

.next-button {
    right: 15px
}

.pagination {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    text-align: center
}

.pagination span {
    color: #fff;
    background-color: rgba(0, 0, 0, .5);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block
}

@media (max-width:768px) {
    .laboratory-gallery {
        grid-template-columns: repeat(2, 1fr)
    }

    .lab-image {
        height: 180px
    }

    .modal-content {
        width: 95%
    }

    .nav-button {
        font-size: 30px
    }
}

@media (max-width:480px) {
    .laboratory-gallery {
        grid-template-columns: repeat(1, 1fr)
    }

    .lab-image {
        height: 220px
    }

    .modal-caption {
        font-size: 16px
    }

    .modal-description {
        font-size: 14px
    }
}

.gallery-modal.show {
    display: flex
}

body.modal-open {
    overflow: hidden
}