@font-face {
    font-family: 'TBC Contractica';
    src: url('Fonts/TBCContractica-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TBC Contractica-Medium';
    src: url('Fonts/TBCContractica-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TBC Contractica-Bold';
    src: url('Fonts/TBCContractica-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TBC Contractica Caps-Bold';
    src: url('Fonts/TBCContracticaCAPS-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}




header {
    display: flex;
    justify-content: space-between;
    padding: 42px 80px;
    background-color: #FFF7F5;

}



header nav {
    display: flex;
    align-self: center;
    gap: 40px;
}

header a {
    font-family: TBC Contractica-Medium;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-decoration: none;
    color: #000000;

}

header a img {
    vertical-align: middle;
}

header a:hover {
    color: #E42237;

}

.dropdown {
    position: relative;
    display: inline-block;
    z-index: 99;
}

.dropdown-link {
    font-family: TBC Contractica-Medium;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);

    width: 172px;
    background: #f5efef;
    border: 2px solid #555;
    border-radius: 11px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 18px 5px;
    text-align: center;
    text-decoration: none;
    font-family: TBC Contractica;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
    border-bottom: 1px solid #777;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

body {
    background-color: #FFF7F5;
}



footer {
    background-color: #353339;
    display: flex;
    margin-top: 50px;
    flex-wrap: wrap;
}

footer img {
    margin: 44px 0px 67px 126px;
}

h3 {
    display: inline-block;
    font-family: TBC Contractica-Medium;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #FFF7F5;
    margin-bottom: 40px;


}

footer a {

    color: #FFF7F599;
    font-family: TBC Contractica;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;

}

div.flex-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

div.nav {
    margin: 40px 0px 0px 223px;

}

div.socials-foot {
    display: flex;
}

div.socials-links {
    display: flex;
    height: 5px;
    align-content: center;
    gap: 10px;

}

.socials-links a {
    width: 40px;
}

main {
    border-top: solid black;
    display: flex;
    padding: 42px 80px 0px 80px;
    background-color: #FFF7F5;
    flex-wrap: wrap;
    flex-direction: column;
}

body {
    background-color: #FFF7F5;
}

.port-title {
    font-family: TBC Contractica-Medium;
    font-size: 20px;
    margin-bottom: 20px;
}

.masonry {
    position: relative;
    z-index: 2;
    columns: 5;
    column-gap: 16px;
    animation: slideUpWobble 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
}


.masonry-item img {
    width: 100%;
    display: block;
    transition: opacity 0.2s;
}

.masonry-item:hover img {
    opacity: 0.85;
}

@media (max-width: 900px) {
    .masonry {
        columns: 3;
    }
}

@media (max-width: 600px) {
    .masonry {
        columns: 2;
    }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.75);
}

.overlay img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    transform: scale(0.85);
    transition: transform 0.3s ease;
    cursor: default;
    border: none;
}

.overlay.active img {
    transform: scale(1);
}

.masonry-item {
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    transition: opacity 0.2s;
}

.masonry-item:hover img {
    opacity: 0.85;
}

.overlay img {
    max-width: 60vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border: none;
}

.overlay img.zoomed {
    transform: scale(1.2);
    cursor: zoom-out;
}


@keyframes slideUpWobble {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    65% {
        transform: translateY(-14px);
        opacity: 1;
    }

    82% {
        transform: translateY(7px);
    }

    100% {
        transform: translateY(0px);
    }
}