/*
Theme Name: Wytwornia
Description: Główne style motywu (Zmienne, Layout, Desktop Nav, GLightbox). Oczyszczone z kodu mobilnego.
*/

/* ==========================================================================
   1. ZMIENNE GLOBALNE I BAZA
   ========================================================================== */
:root {
    --brand-red: #da2128;
    --nav-bg: #333540;
    --text-highlight-color: #5a5c67;
    --nav-text: #ffffff;
    --nav-text-hover: #ffffff;
    --icon-hamburger: #ffffff;
    --icon-search: #ffffff;
    --icon-close: #ffffff;
    --overlay-rgb: 13, 13, 18;

    /* Mapowanie funkcjonalne */
    --nav-bg: #333540;
    --nav-text: #ffffff;
    --nav-text-hover: #ffffff;
    --nav-active-bg: rgba(0, 0, 0, 0.1);
    --nav-accent: #ffffff;
    /* Do ikon i strzałek */
    --nav-border: rgba(255, 255, 255, 0.05);
    --nav-overlay: rgba(13, 13, 18, 0.8);

}

body {
    /* To sprawia, że body staje się punktem odniesienia dla jednostek cqw */
    container-type: inline-size;
}

body:not(.home) {
    padding-top: 48px;
}

html {
    /* scrollbar-gutter: stable; */
}

a {
    text-decoration: none !important;
    /* Usuwamy domyślne podkreślenie */
    color: inherit;
    /* Link przejmuje kolor tekstu rodzica */
    transition: all 0.2s ease-in-out;
    /* Płynne przejście koloru */
}

a:hover,
a:focus {
    color: var(--brand-red);
    /* Zmiana na Twój czerwony przy najechaniu */
    text-decoration: none !important;
    /* Nadal brak podkreślenia (opcjonalnie dodaj underline) */
    outline: none;
}

/* 1. Definiujemy wysokość paska admina jako zmienną globalną */
:root {
    --wp-admin-height: 0px;
}

.admin-bar {
    --wp-admin-height: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar {
        --wp-admin-height: 46px;
    }
}

/* 2. PRZESUWAMY CAŁĄ ZAWARTOŚĆ STRONY (Teksty, obrazki, kontenery) */
html.admin-bar {
    margin-top: var(--wp-admin-height) !important;
    scroll-padding-top: var(--wp-admin-height);
    /* Poprawia przewijanie do kotwic */
}

/* 3. PRZESUWAMY ELEMENTY FIXED (Menu i Hamburger) */
/* Musimy to zrobić osobno, bo elementy 'fixed' ignorują marginesy tagu HTML */
.admin-bar .master-site-header,
.admin-bar .hc-offcanvas-nav {
    top: var(--wp-admin-height) !important;
}

.alignfull {
    width: 100cqw !important;
    /* 100% szerokości kontenera (bez paska!) */
    max-width: 100cqw !important;
    margin-left: calc(50% - 50cqw) !important;
    margin-right: calc(50% - 50cqw) !important;
    position: relative;
    left: 0;
}


/* FINALNA HIERARCHIA SZEROKOŚCI */

/* 1. STANDARD (Bloki bez klas align - np. akapity, H2, H3)
      Chcemy, żeby tekst był węższy dla lepszej czytelności (np. 850px) */

.entry-content>*:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
    max-width: 850px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   GLOBALNA KONTROLA KOLORYSTYKI NAGŁÓWKÓW I POGRUBIEŃ
   ========================================================================== */

/* AUTOMATYCZNE NADPISANIE DLA CAŁEJ STRONY */
:is(strong, b):not(.apla, .apla *) {
    color: var(--text-highlight-color);
}

/* DEDYKOWANE KLASY (Do użycia w panelu WP, np. w sekcji Zaawansowane -> Klasy CSS) */

/* Klasa dla nagłówków lub zwykłych tekstów, które mają mieć ten kolor */
.custom-heading-color {
    color: var(--text-highlight-color);
}

/* Klasa, która jednocześnie pogrubia tekst i nadaje mu ten konkretny kolor */
.custom-bold-color {
    color: var(--text-highlight-color);
    font-weight: 700;
}

.loaders-list h3 {
    color: var(--brand-red);
    font-weight: 700;
}

/* ==========================================================================
   2. SIATKA BOOTSTRAP & BREAKOUT
   ========================================================================== */
.grid-container,
.container {
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .grid-container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .grid-container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .grid-container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .grid-container {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    .grid-container {
        max-width: 1320px !important;
    }
}

/* ==========================================================================
   3. NAGŁÓWEK (Mobile & Desktop)
   ========================================================================== */
.master-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(21, 21, 27, 0.95);
    border-bottom: 2px solid var(--brand-red);
    z-index: 1000;
    padding: 10px;
    transition: all 0.3s ease;
    color: var(--nav-text);
}

.master-site-header li {
    list-style: none !important;
}

.master-site-header.nav-hidden {
    transform: translateY(-100%);
}

.dynamic-logo {
    width: 120px;
    height: auto;
    display: block;
    transition: width 0.4s ease-in-out;
}

.mobile-buttons-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    height: 100%;
}

/* ==========================================================================
   WSPÓLNE KONTROLKI NAGŁÓWKA (Lupa i Hamburger SVG)
   ========================================================================== */
.header-control-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--icon-hamburger, #ffffff);
    transition: color 0.3s ease;
    height: 30px;
    /* Ujednolicona wysokość dla obu przycisków */
}

/* Wspólny efekt najazdu (Hover) - oba robią się czerwone */
.header-control-btn:hover {
    color: var(--brand-red) !important;
}

/* Wymuszenie na ikonach SVG, by dziedziczyły kolor i płynnie się zmieniały */
.header-control-btn svg {
    fill: currentColor !important;
    width: 28px;
    height: auto;
    transition: fill 0.3s ease;
}

/* Wymuszony odstęp między ikonami w nagłówku */
.header-control-btn+.header-control-btn {
    margin-left: 10px !important;
}


/* ==========================================================================
   WSPÓLNY KRZYŻYK ZAMYKAJĄCY (Wyszukiwarka + Menu Mobilne)
   ========================================================================== */
/* 1. Baza dla obu przycisków */
.search-close,
.hc-offcanvas-nav .nav-close-button span {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: var(--icon-close, #ffffff);
    display: block;
    transition: color 0.3s ease;
    /* Tylko animacja podświetlenia */
}

/* Osobne pozycjonowanie tylko dla wyszukiwarki (wtyczka pozycjonuje się sama) */
.search-close {
    position: absolute;
    top: 30px;
    right: 40px;
}

/* 2. Rysowanie dwóch ramion krzyżyka dla obu przycisków */
.search-close::before,
.search-close::after,
.hc-offcanvas-nav .nav-close-button span::before,
.hc-offcanvas-nav .nav-close-button span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    /* Rozpiętość ramion */
    height: 2px;
    /* Grubość 2px */
    background-color: currentColor;
    margin-top: -1px;
    margin-left: -13px;
    border-radius: 2px;
}

/* 3. Statyczne przekrzywienie linii, by utworzyły kształt litery X */
.search-close::before,
.hc-offcanvas-nav .nav-close-button span::before {
    transform: rotate(45deg);
}

.search-close::after,
.hc-offcanvas-nav .nav-close-button span::after {
    transform: rotate(-45deg);
}

/* 4. Wspólny efekt HOVER - zmiana na czerwony */
.search-close:hover,
.hc-offcanvas-nav .nav-close-button:hover span {
    color: var(--brand-red) !important;
}



@media (min-width: 992px) {
    .dynamic-logo {
        width: 140px;
    }

    .master-site-header {
        padding: 10px 40px;
    }

    body.home .master-site-header {
        background-color: transparent;
        border-bottom: none;
        padding: 50px 80px;
    }

    body.home .master-site-header .dynamic-logo {
        width: 160px;
    }

    body.home .master-site-header.is-scrolled {
        background-color: rgba(21, 21, 27, 0.95);
        border-bottom: 2px solid var(--brand-red);
        padding: 10px 40px;
    }
}

/* ==========================================================================
   4. MENU DESKTOP (Tylko PC - od 992px)
   ========================================================================== */
@media (min-width: 992px) {

    /* Główne Menu */
    .nav__menu {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .nav__menu>li {
        position: relative;
        padding: 0 1rem;
        display: flex;
        align-items: center;
    }

    .nav__menu>li>a {
        color: var(--nav-text);
        font-weight: 600;
        text-decoration: none;
        padding: 10px 0;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        transition: color 0.3s;
    }

    .nav__menu>li>a:hover {
        color: var(--nav-text-hover);
    }

    /* Aktywne linki Desktop */
    .master-main-nav .nav__menu>li.current-menu-item>a,
    .master-main-nav .nav__menu>li.current-menu-ancestor>a {
        color: var(--brand-red) !important;
    }

    /* Aktywne linki sub-menu */
    .master-main-nav .sub-menu>li.current-menu-item>a,
    .master-main-nav .sub-menu>li.current-menu-ancestor>a {
        color: var(--brand-red) !important;
        background-color: var(--nav-active-bg);
    }

    /* Submenu (Dropdown) */
    .nav__menu .menu-item-has-children>ul {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--nav-bg);
        min-width: 220px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 0;
        margin: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        z-index: 100;
        display: block;
    }

    .nav__menu .menu-item-has-children:hover>ul {
        opacity: 1;
        visibility: visible;
    }

    .nav__menu ul li {
        border-bottom: 1px solid var(--nav-border);
        display: block;
        padding: 0;
    }

    .nav__menu ul li a {
        padding: 12px 20px;
        font-weight: 400;
        font-size: 0.9rem;
        color: var(--nav-text);
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        min-width: 200px;
    }

    .nav__menu ul li a:hover {
        background: var(--brand-red);
        color: #fff;
    }

    /* Poziom 3+ (Wysuwanie paneli bocznych w prawo) */
    .nav__menu .menu-item-has-children>ul .menu-item-has-children>ul {
        top: 0;
        left: 100%;
        margin-left: 1px;
    }

    /* STRZAŁKI DESKTOP (Budowa) */
    .nav__menu>.menu-item-has-children>a::after {
        content: "";
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.3s ease-in-out;
        margin-top: -3px;
    }

    .nav__menu>.menu-item-has-children:hover>a::after {
        transform: rotate(225deg);
        margin-top: 3px;
    }

    /* Strzałki wewnątrz Submenu Desktop */
    .nav__menu ul .menu-item-has-children>a::after {
        content: "";
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        transition: transform 0.3s ease-in-out;
    }

    .nav__menu ul .menu-item-has-children:hover>a::after {
        transform: rotate(135deg);
    }

    /* ==========================================================================
   DESKTOP SUB-MENU (Wyrównanie do prawej, rozwijanie w lewo)
   ========================================================================== */

    /* 1. Ustawienie rodzica jako punktu odniesienia */
    nav.master-main-nav ul li {
        position: relative;
    }

    /* 2. Pierwszy poziom podmenu (pod przyciskami głównymi) */
    nav.master-main-nav ul.sub-menu {
        position: absolute;
        top: 100%;
        /* Wyświetl pod elementem */
        right: 0;
        /* Przyklej do prawej krawędzi rodzica */
        left: auto;
        /* Zresetuj domyślne wyrównanie do lewej */

        min-width: 220px;
        z-index: 999;

        /* Ukrywanie (zamiast display:none, by móc animować np. opacity) */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Wyświetlanie po najechaniu */
    nav.master-main-nav ul li:hover>ul.sub-menu {
        visibility: visible;
        opacity: 1;
    }

    /* 3. Drugi poziom podmenu i kolejne (wysuwane z boku) */
    nav.master-main-nav ul.sub-menu ul.sub-menu {
        top: 0;
        /* Ta sama wysokość co rodzic */
        right: 100%;
        /* Wypchnij całkowicie na lewo od aktualnego menu */
        left: auto;
    }


}

/* ==========================================================================
   5. WYSZUKIWARKA OVERLAY
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(var(--overlay-rgb), 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.4s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.search-title {
    color: var(--brand-red);
    font-size: 2.5rem;
    text-align: center;
}

.search-form-full {
    display: flex;
    border-bottom: 2px solid #fff;
}

.search-form-full input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    outline: none;
}

.search-form-full button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ==========================================================================
   6. WIDGETY I MODUŁY (GLightbox)
   ========================================================================== */
.gcontainer .gcaption-inner {
    background: var(--nav-bg) !important;
    padding: 15px 20px !important;
    border-left: 3px solid var(--brand-red);
}

.gcontainer .gcaption-title {
    color: var(--brand-red) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 5px;
}

.gcontainer .gcaption-description {
    color: var(--nav-text) !important;
    font-size: 0.9rem !important;
    opacity: 0.9;
    line-height: 1.4;
}

/* ==========================================================================
   7. TABELE PRODUKTÓW
   ========================================================================== */

table,
thead {
    border-collapse: collapse !important;
    /* Usuwa podwójne linie */
    border: none !important;
    /* Usuwa ramkę zewnętrzną tabeli */
}

table td,
table th {
    border: none !important;
    /* Usuwa ramki komórek (wewn. i nagłówków) */
}


/* 1. RESET KONTENERA ZEWNĘTRZNEGO (<figure>) */
/* Klasa jest na figure, więc to on jest głównym marginesem, ale nie ma ramek */
figure.product-spec-table {
    margin: 20px 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. WŁAŚCIWA TABELA (Wewnątrz kontenera) */
/* To tutaj dajemy szerokość i czerwoną kreskę na górze */
.product-spec-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    border-top: 2px solid var(--brand-red) !important;
    margin: 0 !important;
    table-layout: auto !important;
}

/* 3. ZEBRA STRIPING NA DESKTOPIE (Wiersze) */
.product-spec-table tr:nth-child(even) {
    background-color: #f7f7f7 !important;
}

/* 4. KOMÓRKI (TD) NA DESKTOPIE */
.product-spec-table td {
    padding: 15px 15px !important;
    border: none !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: table-cell;
}

/* Lewa kolumna (Parametr) */
.product-spec-table td:first-child {
    width: 40% !important;
    min-width: 180px !important;
    /* Zapobiega gnieceniu tekstu na tabletach */
    font-weight: 700 !important;
    color: var(--text-highlight-color);
}

/* Prawa kolumna (Wartość) */
.product-spec-table td:last-child {
    width: 60% !important;
    color: #555 !important;
}

/* ==========================================================================
   WIDOK MOBILNY I TABLET (Poniżej 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Przejście na układ blokowy - celujemy w elementy W ŚRODKU tabeli */
    .product-spec-table table,
    .product-spec-table tbody,
    .product-spec-table tr,
    .product-spec-table td {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* Wiersze na mobile */
    /* UWAGA: Przywróciłem tr:nth-child(even) by nadpisać szare tło z desktopu! */
    .product-spec-table tr,
    .product-spec-table tr:nth-child(even) {
        background-color: transparent !important;
        border-bottom: 1px dotted var(--brand-red) !important;
        /* Twoja czerwona przerywana linia */
        padding: 0 !important;
        margin-bottom: 0px;
        /* Odstęp między blokami parametrów */
    }

    .product-spec-table tr:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }

    /* Etykieta (Góra - np. MOC ZNAMIONOWA) */
    .product-spec-table td:first-child {
        width: 100% !important;
        background-color: #f7f7f7 !important;
        font-size: 0.8rem !important;
        color: #777 !important;
        padding: 8px 15px !important;
        min-width: 0 !important;
        /* Usuwa blokadę 180px z desktopu */
    }

    /* Wartość (Dół - np. 32.4 kW) */
    .product-spec-table td:last-child {
        width: 100% !important;
        background-color: #ffffff !important;
        font-weight: 500 !important;
        color: #222 !important;
        padding: 10px 15px 15px 15px !important;
    }
}


/* ==========================================================================
   7.1. MODYFIKATOR: WERSJA MINI (DLA KART PRODUKTÓW) - FINALNA Z ZEBRĄ
   ========================================================================== */

/* RESET KONTENERÓW FIGURE */
figure.product-spec-table,
figure.product-mini-table,
figure.product-opt-table {
    margin: 20px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* WSPÓLNE DLA WSZYSTKICH TABEL */
.product-spec-table table,
.product-mini-table table,
.product-opt-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: inherit;
}

/* Specyfikacja Główna (.product-spec-table) */

.product-spec-table table {
    border-top: 2px solid var(--brand-red);
}

.product-spec-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.product-spec-table tr:nth-child(even) {
    background: #f7f7f7;
}

/* Mobile: Układ blokowy (etykieta nad wartością) */
@media (max-width: 768px) {

    .product-spec-table td,
    .product-spec-table tr {
        display: block;
        width: 100% !important;
    }

    .product-spec-table td:first-child {
        background: #f7f7f7;
        padding-bottom: 5px;
        font-size: 13px;
    }

    .product-spec-table td:last-child {
        background: #fff;
        padding-top: 5px;
        padding-bottom: 15px;
    }
}

/* Mini Tabelka (.product-mini-table) */

.product-mini-table table {
    border-top: 1px solid var(--brand-red);
    font-size: 16px;
    table-layout: fixed;
}

.product-mini-table td {
    padding: 8px 12px;
    border: none;
}

.product-mini-table tr:nth-child(even) {
    background: #f7f7f7;
}

.product-mini-table td:first-child {
    font-weight: 700;
    color: var(--text-highlight-color);
    width: 55%;
}

.product-mini-table td:last-child {
    text-align: right;
    color: #666;
    width: 45%;
}

/* Mobile: Zostaje w poziomie */
@media (max-width: 768px) {
    .product-mini-table td {
        padding: 8px 5px;
    }
}

/* Opcje i Dopłaty (.product-opt-table) */

/* Brak czerwonej kreski na górze - thead ją zastępuje */

.product-opt-table th:nth-child(1) {
    text-align: right;
}

.product-opt-table td:nth-child(2) {
    text-align: right;
    font-weight: 700;
    color: var(--text-highlight-color);
    white-space: nowrap;
    width: 30%;
}

.product-opt-table thead th {
    background: var(--brand-red);
    color: #fff;
    padding: 8px 15px;
    text-align: left;
    letter-spacing: 1px;
}

.product-opt-table td {
    padding: 15px 15px;
}

/* Wiersze kategorii (colspan="2") */
.product-opt-table td[colspan="2"] {
    background: #f1f1f1;
    font-weight: 700;
    color: var(--text-highlight-color);
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 15px;
}

.product-opt-table td:not([colspan="2"]) {
    border-bottom: 1px solid #f1f1f1 !important;
}

/* Wiersze z elementami */
.product-opt-table tr:not([td[colspan]]) td {
    padding: 10px 15px;
    font-size: 14px;
}

/* Kolumna z ceną (shortcode) */
.product-opt-table td:nth-child(2) {
    text-align: right;
    font-weight: 700;
    color: var(--brand-red);
    white-space: nowrap;
    width: 30%;
    border-bottom: 2px solid var(--brand-red);
}



/* ==========================================================================
   STYLIZACJA STOPKI I OBSZARU WIDGETÓW
   ========================================================================== */

/* 1. Cały kontener stopki (Widgety + Copyright) */
.site-footer {
    background-color: #f2f2f2 !important;
    /* Jasny szary - możesz użyć var(--bg-light-gray) */
    color: var(--brand-gray) !important;
    /* Kolor tekstu */
}

/* 2. Obszar samych widgetów */
.footer-widgets {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    background-color: transparent !important;
    /* Przezroczysty, by brał kolor z .site-footer */
}

/* 3. Tytuły widgetów (np. "O nas", "Kontakt") */
.footer-widgets .widget-title {
    color: var(--brand-gray) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-red);
    /* Czerwony akcent pod tytułem */
    display: inline-block;
}

/* 4. Dolny pasek (Copyright) */
.site-info {
    background-color: rgba(0, 0, 0, 0.03) !important;
    /* Delikatne przyciemnienie dla odcięcia */
    color: #666666 !important;
    font-size: 13px;
    padding: 20px 0 !important;
    border-top: 1px solid #e5e5e5;
    /* Subtelna linia oddzielająca */
}

/* 5. Linki w stopce */
.site-footer a {
    color: var(--brand-gray);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand-red) !important;
}


/* masonry gallery */

.wrapper {
    margin: 2em auto;
    max-width: 100%;
}

img {
    vertical-align: middle;
    max-width: 100%;
}

.masonry {
    display: flex;
    width: 100%;
}

a {}

.masonry--h {
    flex-flow: row wrap;
    margin-bottom: 2rem;
}

.masonry--v {
    flex-flow: column wrap;
    max-height: 1080px;
}

.masonry--h,
.masonry--v {
    /* margin-left: -1px; */
    /* Adjustment for the gutter */
    counter-reset: brick;
    margin-top: 1.5rem;
}

.masonry-brick {
    overflow: hidden;
    margin: 0 0 2px 2px;
    /* Some Gutter */
    background-color: #333;
    color: white;
    position: relative;
}

.masonry-brick:after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5000;
    transform: translate(-50%, -50%);
    /* counter-increment: brick;
		content: counter(brick); */
    transition: font-size 0.25s, opacity 0.25s ease-in-out;
    font-weight: 700;
    opacity: 0.5;
    font-size: 1.25em;
}

.masonry-brick:hover:after {
    font-size: 2.25em;
    opacity: 1;
}

.masonry-brick--h {
    flex: auto;
    height: 250px;
    min-width: 150px;
}

@media only screen and (min-width: 992px) {

    /* Horizontal masonry bricks on desktop-sized screen */
    .masonry-brick--h:nth-child(4n + 1) {
        width: 250px;
    }

    .masonry-brick--h:nth-child(4n + 2) {
        width: 325px;
    }

    .masonry-brick--h:nth-child(4n + 3) {
        width: 180px;
    }

    .masonry-brick--h:nth-child(4n + 4) {
        width: 380px;
    }

    /* Adjusting vertical masonry height on desktop-sized screen */
    .masonry--v {
        max-height: 1600px;
    }

    /* Vertical masonry bricks on desktop-sized screen */
    .masonry-brick--v {
        width: 33.33333%;
    }
}

@media only screen and (max-width: 991px) and (min-width: 576px) {

    /* Horizontal masonry bricks on tabled-sized screen */
    .masonry-brick--h:nth-child(4n + 1) {
        width: 200px;
    }

    .masonry-brick--h:nth-child(4n + 2) {
        width: 250px;
    }

    .masonry-brick--h:nth-child(4n + 3) {
        width: 120px;
    }

    .masonry-brick--h:nth-child(4n + 4) {
        width: 280px;
    }

    /* Adjusting vertical masonry height on tablet-sized screen */
    .masonry--v {
        max-height: 2000px;
    }

    /* Vertical masonry bricks on tablet-sized screen */
    .masonry-brick--v {
        width: 50%;
    }
}

.masonry-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* filter: brightness(50%); */
}