.section.docs .wrapper {
    margin-bottom : 4.5rem;
}


.main-gallery-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 3rem;
}
.d_header {
    padding-bottom : 4.5rem;
}

.d_text {
    font-family : "Inter";
    font-weight : 300;
    font-size : 2.2rem;
    line-height : 1.4;
    letter-spacing : 1px;
}

.d_text a {
    padding :  0.4rem 4.2rem 0.4rem 1.6rem;
    border : 1px solid var(--gray-main);
    text-decoration : none;
    color : var(--gray-main);
    line-height : 1;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
}

.d_text a:hover {
    border : 1px solid transparent;
    background: var(--gray-main);
    color : white;
}

.gallery-thumbs {
    gap: 3rem; /* проміжок між мініатюрами */
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

.main-gallery-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: auto; /* підхопить висоту першого фото */
    overflow: hidden;
}

.main-gallery-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/**
    Загальна сторінка
*/

.cat-filter {
    display: flex;
    gap: 8rem; /* відстань між категоріями */
    font-family: 'Inter';
    font-size: 2.2rem;
    font-weight : 300;
    text-transform: uppercase;
    letter-spacing : 1.76px;
}

.cat-filter a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 4px;
    margin-bottom : 4.5rem;
}

/* Підкреслення при hover */

.cat-filter a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-main);
}

/* Активний елемент */
.cat-filter a.active {
    color: var(--gray-main);
}

.cat-filter a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-main);
}

.card-body {
    line-height : 1.4;
    font-size : 1.8rem;
    padding : 1.5rem 0;
}

.doc-category {
    font-weight : 300;    
    text-transform : lowercase;
    letter-spacing : 1px;
}

.doc-subtitle {
    text-transform : uppercase;
    letter-spacing : 2px;
    font-weight : 400;
}

.doc-title {
    text-transform : uppercase;
    letter-spacing : 1px;
    font-weight : 700;
}

.projects_url {
    font-weight : 300;
    color : var(--gray-main);
    text-decoration : none;
    padding-bottom : 3px;
    border-bottom : 1px solid var(--gray-main);
    letter-spacing : 2px;
}

.project-card {
    margin-bottom : 9rem;
}

.project-thumb {
  height: 50rem;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
