.maincontent {
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}



/* -- Gallery - Tabs -- */

.gallery-nav-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto 60px;
    padding: 0;
    list-style: none;
    gap: 3%;
}
.gallery-nav-disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}
.gallery-nav-item {
    width: calc(33.3333333333% - (6% / 3));
    margin-block: 10px;
    z-index: 0;
}
.gallery-nav-button {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: #50525d;
    cursor: pointer;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    z-index: 0;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .15);
    transition: color .33s, background-color .33s;
}
.gallery-nav-button::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 100%;
    opacity: 0;
    background-color: var(--accent-color);
    border-radius: 10px;
    z-index: -1;
    transition: left .33s, opacity .33s;
}
.gallery-nav-button:hover,
.gallery-nav-button:focus {
    background-color: #f0f2fd;
}
.gallery-nav-button-active {
    color: #fff;
}
.gallery-nav-button-active::after {
    left: 0;
    opacity: 1;
}

.gallery-wrapper {
    transition: opacity .33s;
}
.gallery-wrapper-fade-out {
    opacity: 0;
}
.gallery-content {
    display: none;
}
.gallery-content-visible {
    display: block;
}



/* -- Gallery - Main -- */

.gallery-noscript {
    font-size: 1.05rem;
    text-align: center;
}
.gallery-loader {
    display: block;
    margin: 50px auto -50px;
    border-radius: 50%;
    transition: opacity .4s;
    width: 20px;
    height: 20px;
    box-shadow: 20px 0 0 #e2e4e8, -20px 0 0 #e2e4e8, 0 20px 0 #e2e4e8, 0 -20px 0 var(--accent-color);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto 60px;
    padding: 0;
    transform: translateY(50px);
    opacity: 0;
    min-height: 500px;
    transition: transform .4s, opacity .4s;
}
.gallery-fade-in {
    transform: translateY(0);
    opacity: 1;
}
.gallery-fade-out {
    opacity: 0;
}
.gallery h2 {
    width: 100%;
    text-align: left;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #12141d;
    margin: 100px 0 20px;
    padding-left: 10px;
}
.gallery h2:first-child {
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    width: 24%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px .5% 0;
    box-shadow: 0 4px 12px rgba(5, 5, 5, .15);
    border: 6px solid #fff;
    border-radius: 10px;
}
.gallery-item img {
    width: auto;
    height: 115%;
    transition: opacity .4s, transform .4s;
}
.gallery-item img.vertical-img {
    width: 115%;
    height: auto;
}
.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    fill: #111;
    opacity: 0;
    transition: opacity .4s;
}
.gallery-item:hover .gallery-icon {
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
    transform: scale(1.05);
}
.gallery-label-before,
.gallery-label-after {
    position: absolute;
    top: 10px;
    left: 10px;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
    font-size: .95rem;
    color: #fff;
    padding: 5px 10px;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .gallery-item {
        width: 32.3333333333%;
    }
}

@media (max-width: 981px) {
    .gallery-item {
        width: 49%;
    }
}

@media (max-width: 600px) {
    .gallery-nav-item {
        width: 100%;
    }
    .gallery-item,
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}