@font-face {
    font-family: "MyriadPro-Regular";
    src: url("/fonts/myriad-pro/3dd6e9888191722420f62dd54664bc94.eot");
    src: url("/fonts/myriad-pro/3dd6e9888191722420f62dd54664bc94.eot?#iefix")format("embedded-opentype"),
    url("/fonts/myriad-pro/3dd6e9888191722420f62dd54664bc94.woff2")format("woff2"),
    url("/fonts/myriad-pro/3dd6e9888191722420f62dd54664bc94.woff")format("woff"),
    url("/fonts/myriad-pro/3dd6e9888191722420f62dd54664bc94.ttf")format("truetype"),
    url("/fonts/myriad-pro/3dd6e9888191722420f62dd54664bc94.svg#MyriadPro-Regular")format("svg");
}

/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #414042;
    font-family: 'MyriadPro-Regular';
    font-size: 14px;
    line-height: 1.8;
    padding-bottom: 15px;
    border-top: 32px solid rgb(198 198 198 / 43%);
}

/* Main Container */
.gallery-container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 10px;
}

.copyright-text {
    bottom: 0;
    left: 0;
    width: 100%;
    color: #333;
    text-align: right;
    padding: 10px 0;
    font-size: 14px;
    margin: 5px 0 -28px 0;
}

.header_image img {
    border: 0;
}

.header_text {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    letter-spacing: 7px;
    line-height: 1.3em;
    margin-bottom: -12px;
    z-index: 999;
}

.header_text img {
    width: 310px;
}

.header_text a {
    color: #414042;
    text-decoration: none;
}

.header_text a:hover {
    color: #000000;
}

.header_text a:active {
    color: #414042;
}

/* Grid for Thumbnails */
#index, #header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 31px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

#header {
    margin-top: -46px;
}

#header .contact-info {
    text-align: right;
    color: #818181;
    font-size: 15px;
    padding: 0 5px 0 0;
    letter-spacing: 1px;
    margin: 2px 0 0 0;
}

/* Thumbnail Styling */
.thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Скрывает выходящие части изображения */
    background-color: transparent;
    transition: transform 0.5s ease-in-out;
}

.thumbnail img {
    object-fit: cover; /* Обеспечивает корректное отображение */
    transition: transform 0.5s ease-in-out; /* Плавное увеличение */
}

.thumbnail:hover img {
    transform: scale(1.1); /* Увеличивает изображение на 10% */
}

.thumb_image {
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.thumb_title {
    margin-top: 4px;
    font-size: 14px;
    text-align: center;
    color: #333;
    letter-spacing: 2px;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.navigation a {
    text-decoration: none;
    color: #939598;
    transition: color 0.3s ease-in-out;
}

.navigation a:hover,
.navigation a:focus {
    color: #000;
    outline: none;
}

/* Header */
.site_header {
    text-align: center;
    padding: 20px 15px;
    font-size: 20px;
    color: #414042;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Slideshow */
.slideshow {
    text-align: center;
    margin: 20px 0;
}

.slideshow img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Project Content */
.project_content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    font-style: normal;
}

.project_content img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.project_footer {
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #666;
}

.project_footer a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease-in-out;
}

.project_footer a:hover {
    color: #000;
}

/**
 * Navigation
 * - Contains navigation links and following
 */

.navigation {
    display: inline-block;
    z-index: 999;
    margin-top: 50px;
    font-size: 11px;
    letter-spacing: 0;
    font-family: 'Open Sans', sans-serif;
    color: #939598;
}

.navigation .group {
    display: block;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    clear: both;
}

.navigation .following {
    color: #999999;
    margin-left: 30px;
}

.navigation div {
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    height: 24px;
    line-height: 24px;
}

.navigation div:first-child {
    margin-left: 0;
}

.thumbnail .thumb_title {
    color: #414042;
    font-family:'Open Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
    padding: 0 0 15px 0;
    text-align: center;
    opacity: 0.75;
}

.thumbnail {
    position: relative; /* Ensure proper positioning for child elements */
    transition: all 0.3s ease; /* Smooth transitions */
}

.thumb_title {
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth opacity transition */
}

.thumbnail:hover .thumb_title {
    opacity: 1; /* Make thumb_title visible on hover */
}

.thumbnail a {
    text-decoration: none;
}

.four-rows .gallery-content {
    .title {
        text-transform: uppercase;
        font-size: 20px;
    }
    .description {
        font-size: 14px;
    }
    text-align: right;
}

/* Layout */
.gallery-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adds spacing between items */
}

.gallery-content {
    flex: 0 0 calc(100% - 10px); /* Occupies 50% of the container width */
    padding: 0 0 15px 0;
    box-sizing: border-box;
    text-align: center;
}

.gallery-content .title {
    position: relative;
    font-size: 24px;
    text-transform: uppercase;
    color: rgb(114, 3, 14);
    text-align: center;
    width: max-content;
    margin: 0 auto;
    letter-spacing: 4px;
}

.gallery-content .title::before,
.gallery-content .title::after {
    content: "∼"; /* Tilde character as decorative element */
    font-size: 20px;
    color: #888; /* Adjust color if necessary */
    position: absolute;
    top: 43%; /* Center vertically */
    transform: translateY(-50%);
}

.gallery-content .title::before {
    left: -24px; /* Adjust distance from the title on left */
}

.gallery-content .title::after {
    right: -24px; /* Adjust distance from the title on right */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-content {
        column-count: 1 !important;
    }

    .description p {
        margin: 0 !important;
    }
}

#footer .gallery-container {
    padding: 10px 17px 10px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #header .contact-info, .copyright-text {
        text-align: center;
    }

    .thumb_title {
        font-size: 13px;
    }

    .description p {
        margin: 0 !important;
    }

    #footer .back-button {
        text-align: center;
    }
}

@media (max-width: 480px) {
    #index {
        gap: 10px;
    }

    .thumb_title {
        font-size: 12px;
    }

    .site_header {
        font-size: 16px;
        padding: 15px;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #header .contact-info {
        font-size: 14px;
    }
}
