/* =========================================================
K6ISS AMATEUR RADIO PORTFOLIO
Main stylesheet
========================================================= */

/* =========================================================

1. COLOR VARIABLES
   ========================================================= */

:root {
--background: #0d1117;
--background-soft: #111827;
--card-background: #161b22;
--card-background-light: #1d2633;

```
--text-primary: #f5f7fa;
--text-secondary: #aeb8c4;

--accent: #00b7ff;
--accent-hover: #35ccff;
--accent-dark: #007eae;

--border: rgba(255, 255, 255, 0.11);
--overlay: rgba(0, 0, 0, 0.88);

--shadow-small: 0 8px 20px rgba(0, 0, 0, 0.25);
--shadow-large: 0 18px 45px rgba(0, 0, 0, 0.4);

--border-radius-small: 10px;
--border-radius-medium: 16px;
--border-radius-large: 24px;

--page-width: 1200px;
--header-height: 74px;

--transition: 0.3s ease;
```

}

/* Light-mode colors */

body.light-mode {
--background: #f2f5f8;
--background-soft: #e8edf2;
--card-background: #ffffff;
--card-background-light: #f8fafc;

```
--text-primary: #121820;
--text-secondary: #56616e;

--border: rgba(0, 0, 0, 0.12);

--shadow-small: 0 8px 20px rgba(0, 0, 0, 0.1);
--shadow-large: 0 18px 45px rgba(0, 0, 0, 0.15);
```

}

/* =========================================================
2. RESET AND BASE STYLES
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
min-height: 100vh;

```
font-family:
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;

background: var(--background);
color: var(--text-primary);
line-height: 1.6;

transition:
    background-color var(--transition),
    color var(--transition);
```

}

body.lightbox-open {
overflow: hidden;
}

img {
display: block;
max-width: 100%;
}

a {
color: inherit;
text-decoration: none;
}

button,
input,
textarea,
select {
font: inherit;
}

button {
color: inherit;
}

ul {
list-style-position: inside;
}

section {
padding: 90px 5%;
}

.section-heading {
width: min(100%, 760px);
margin: 0 auto 48px;
text-align: center;
}

.section-heading h2 {
margin-bottom: 14px;
font-size: clamp(2rem, 4vw, 2.8rem);
line-height: 1.2;
}

.section-heading > p:last-child {
color: var(--text-secondary);
font-size: 1.05rem;
}

.section-label {
margin-bottom: 10px;
color: var(--accent);
font-size: 0.82rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
}

/* =========================================================
3. REUSABLE BUTTONS
========================================================= */

.button {
display: inline-flex;
align-items: center;
justify-content: center;

```
min-height: 46px;
padding: 11px 24px;

border: 2px solid transparent;
border-radius: 999px;

font-weight: 700;

transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
```

}

.button:hover {
transform: translateY(-3px);
}

.button-primary {
background: var(--accent);
color: #00131c;
}

.button-primary:hover {
background: var(--accent-hover);
}

.button-secondary {
border-color: var(--accent);
background: transparent;
color: var(--accent);
}

.button-secondary:hover {
background: var(--accent);
color: #00131c;
}

/* =========================================================
4. HEADER AND NAVIGATION
========================================================= */

.site-header {
position: sticky;
top: 0;
z-index: 1000;

```
height: var(--header-height);

background: rgba(13, 17, 23, 0.88);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(14px);
```

}

body.light-mode .site-header {
background: rgba(255, 255, 255, 0.9);
}

.navbar {
width: min(100% - 32px, var(--page-width));
height: 100%;
margin: 0 auto;

```
display: flex;
align-items: center;
gap: 28px;
```

}

.logo {
display: inline-flex;
align-items: center;
gap: 10px;

```
margin-right: auto;

color: var(--accent);
font-size: 1.35rem;
font-weight: 800;
letter-spacing: 0.03em;
```

}

.logo-icon {
font-size: 1.45rem;
}

.nav-links {
display: flex;
align-items: center;
gap: 26px;
}

.nav-links a {
position: relative;

```
padding: 8px 0;

color: var(--text-secondary);
font-weight: 600;

transition: color var(--transition);
```

}

.nav-links a::after {
content: "";

```
position: absolute;
left: 0;
bottom: 0;

width: 0;
height: 2px;

background: var(--accent);

transition: width var(--transition);
```

}

.nav-links a:hover {
color: var(--accent);
}

.nav-links a:hover::after {
width: 100%;
}

.theme-toggle,
.menu-toggle {
border: 0;
background: transparent;
cursor: pointer;
}

.theme-toggle {
display: grid;
place-items: center;

```
width: 42px;
height: 42px;

border: 1px solid var(--border);
border-radius: 50%;

font-size: 1.25rem;

transition:
    background-color var(--transition),
    transform var(--transition);
```

}

.theme-toggle:hover {
background: var(--card-background);
transform: rotate(10deg);
}

.menu-toggle {
display: none;
width: 42px;
height: 42px;
}

.menu-toggle span {
display: block;

```
width: 25px;
height: 2px;
margin: 5px auto;

background: var(--text-primary);

transition:
    transform var(--transition),
    opacity var(--transition);
```

}

/* =========================================================
5. HERO SECTION
========================================================= */

.hero {
position: relative;

```
min-height: calc(100vh - var(--header-height));

display: grid;
place-items: center;

overflow: hidden;

background:
    linear-gradient(
        rgba(0, 0, 0, 0.58),
        rgba(0, 0, 0, 0.78)
    ),
    url("../images/hero-bg.jpg")
    center / cover no-repeat;
```

}

.hero-overlay {
position: absolute;
inset: 0;

```
background:
    radial-gradient(
        circle at center,
        rgba(0, 183, 255, 0.15),
        transparent 55%
    );

pointer-events: none;
```

}

.hero-content {
position: relative;
z-index: 1;

```
width: min(100%, 900px);
margin: 0 auto;
text-align: center;
```

}

.hero-label {
margin-bottom: 10px;

```
color: var(--accent);
font-size: 0.9rem;
font-weight: 800;
letter-spacing: 0.18em;
text-transform: uppercase;
```

}

.hero h1 {
color: #ffffff;
font-size: clamp(4rem, 12vw, 8rem);
line-height: 0.95;
letter-spacing: 0.04em;
text-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
}

.hero h2 {
margin-top: 22px;

```
color: #ffffff;
font-size: clamp(1.35rem, 3vw, 2rem);
font-weight: 500;
```

}

.hero-description {
width: min(100%, 720px);
margin: 22px auto 0;

```
color: #d8e0e8;
font-size: 1.08rem;
```

}

.hero-buttons {
margin-top: 32px;

```
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
```

}

.hero-details {
width: min(100%, 720px);
margin: 48px auto 0;
padding: 20px;

```
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;

background: rgba(12, 20, 29, 0.72);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: var(--border-radius-large);
backdrop-filter: blur(12px);
```

}

.hero-detail {
padding: 10px 16px;

```
display: flex;
flex-direction: column;
gap: 4px;
```

}

.hero-detail + .hero-detail {
border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-detail-label {
color: #aeb8c4;
font-size: 0.78rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.hero-detail strong {
color: #ffffff;
}

/* =========================================================
6. ABOUT SECTION
========================================================= */

.about-section {
background: var(--background);
}

.about-grid {
width: min(100%, var(--page-width));
margin: 0 auto;

```
display: grid;
grid-template-columns: minmax(280px, 420px) 1fr;
gap: 56px;
align-items: center;
```

}

.about-image-wrapper {
position: relative;

```
border-radius: var(--border-radius-large);
```

}

.about-image-wrapper::before {
content: "";

```
position: absolute;
top: -14px;
left: -14px;
z-index: 0;

width: 100%;
height: 100%;

border: 2px solid var(--accent);
border-radius: var(--border-radius-large);
```

}

.about-image {
position: relative;
z-index: 1;

```
width: 100%;
aspect-ratio: 1 / 1;

object-fit: cover;

border-radius: var(--border-radius-large);
box-shadow: var(--shadow-large);
```

}

.about-content h3 {
margin-bottom: 4px;

```
font-size: clamp(1.8rem, 4vw, 2.5rem);
```

}

.about-call-sign {
margin-bottom: 20px;

```
color: var(--accent);
font-weight: 800;
```

}

.about-content > p:not(.about-call-sign) {
margin-bottom: 16px;
color: var(--text-secondary);
}

.about-details {
margin-top: 28px;

```
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
```

}

.about-detail {
padding: 18px;

```
display: flex;
flex-direction: column;
gap: 5px;

background: var(--card-background);
border: 1px solid var(--border);
border-radius: var(--border-radius-medium);
```

}

.about-detail span {
color: var(--text-secondary);
font-size: 0.82rem;
}

.about-detail strong {
color: var(--accent);
}

/* =========================================================
7. STATION SECTION
========================================================= */

.station-section {
background: var(--background-soft);
}

.station-layout {
width: min(100%, var(--page-width));
margin: 0 auto;

```
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
gap: 28px;
```

}

.station-card,
.station-summary {
background: var(--card-background);
border: 1px solid var(--border);
border-radius: var(--border-radius-large);
box-shadow: var(--shadow-small);
}

.station-card {
padding: 32px;
}

.station-card-header {
margin-bottom: 28px;

```
display: flex;
align-items: center;
gap: 18px;
```

}

.station-icon {
display: grid;
place-items: center;

```
width: 58px;
height: 58px;

flex: 0 0 auto;

background: rgba(0, 183, 255, 0.12);
border-radius: 16px;

font-size: 1.8rem;
```

}

.station-card-label {
color: var(--accent);
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
}

.station-card h3,
.station-summary h3 {
font-size: 1.45rem;
}

.station-details-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}

.station-detail {
padding: 22px;

```
background: var(--card-background-light);
border: 1px solid var(--border);
border-radius: var(--border-radius-medium);
```

}

.station-detail h4 {
margin-bottom: 10px;
color: var(--accent);
}

.station-detail ul {
color: var(--text-secondary);
}

.station-detail li + li {
margin-top: 5px;
}

.station-summary {
padding: 30px;
}

.station-summary h3 {
margin-bottom: 20px;
}

.station-summary-row {
padding: 14px 0;

```
display: flex;
justify-content: space-between;
gap: 20px;

border-bottom: 1px solid var(--border);
```

}

.station-summary-row:last-child {
border-bottom: 0;
}

.station-summary-row span {
color: var(--text-secondary);
}

.station-summary-row strong {
text-align: right;
}

.stats-grid {
width: min(100%, var(--page-width));
margin: 32px auto 0;

```
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 22px;
```

}

.stat-card {
padding: 28px 20px;
text-align: center;

```
background: var(--card-background);
border: 1px solid var(--border);
border-radius: var(--border-radius-large);
box-shadow: var(--shadow-small);

transition:
    transform var(--transition),
    box-shadow var(--transition);
```

}

.stat-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow-large);
}

.stat-card .stat-icon {
display: block;
margin-bottom: 10px;
font-size: 2.3rem;
}

.counter {
display: block;

```
color: var(--accent);
font-size: 2.8rem;
line-height: 1.1;
```

}

.stat-card p {
margin-top: 8px;
color: var(--text-secondary);
}

/* =========================================================
8. GALLERY SECTION
========================================================= */

.gallery-section {
background: var(--background);
}

.gallery-filters {
margin-bottom: 42px;

```
display: flex;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
```

}

.filter-btn {
min-width: 105px;
padding: 10px 22px;

```
border: 1px solid var(--border);
border-radius: 999px;

background: var(--card-background);
color: var(--text-primary);

cursor: pointer;
font-weight: 700;

transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
```

}

.filter-btn:hover,
.filter-btn.active {
background: var(--accent);
border-color: var(--accent);
color: #00131c;
transform: translateY(-2px);
}

.gallery-grid {
    width: min(100%, 1400px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(min(100%, 260px), 1fr)
    );
    gap: 24px;
}

.gallery-item {
width: 100%;
overflow: hidden;

```
background: var(--card-background);
border: 1px solid var(--border);
border-radius: var(--border-radius-large);
box-shadow: var(--shadow-small);

transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
```

}

.gallery-item:hover {
transform: translateY(-7px);
box-shadow: var(--shadow-large);
}

.gallery-item.is-hidden {
display: none;
}

.gallery-image-button {
width: 100%;
height: 300px;
padding: 0;

```
display: block;

overflow: hidden;

border: 0;
background: #080b0f;

cursor: zoom-in;
```

}

.gallery-image-button img {
width: 100%;
height: 100%;

```
object-fit: contain;

transition: transform 0.45s ease;
```

}

.gallery-item:hover .gallery-image-button img {
transform: scale(1.04);
}

.gallery-content {
padding: 20px;
}

.gallery-category {
display: inline-flex;

```
padding: 5px 11px;

background: rgba(0, 183, 255, 0.14);
border: 1px solid rgba(0, 183, 255, 0.3);
border-radius: 999px;

color: var(--accent);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
```

}

.gallery-content h3 {
margin-top: 13px;
font-size: 1.25rem;
}

.gallery-content p {
margin-top: 7px;
color: var(--text-secondary);
}

.gallery-meta {
font-size: 0.9rem;
}

.gallery-toolbar {
    width: min(100%, 1400px);
    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.gallery-search {
    flex: 1 1 320px;
}

.gallery-search input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--card-background);
    color: var(--text-primary);
    outline: none;
}

.gallery-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 183, 255, 0.15);
}

#gallery-count {
    color: var(--text-secondary);
    font-weight: 600;
}

.gallery-load-more-wrapper {
    margin-top: 38px;
    text-align: center;
}

.gallery-item {
    position: relative;
    isolation: isolate;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(0, 183, 255, 0.12),
        transparent 45%
    );
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::before {
    opacity: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* =========================================================
9. LIGHTBOX
========================================================= */

.lightbox {
position: fixed;
inset: 0;
z-index: 3000;

```
padding: 30px;

display: none;
align-items: center;
justify-content: center;

background: var(--overlay);
```

}

.lightbox.is-open {
display: flex;
}

.lightbox-content {
width: min(90vw, 1100px);
max-height: 88vh;

```
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
```

}

.lightbox-content img {
max-width: 100%;
max-height: 78vh;

```
object-fit: contain;

border-radius: var(--border-radius-medium);
box-shadow: var(--shadow-large);
```

}

.lightbox-content figcaption {
min-height: 24px;

```
color: #ffffff;
text-align: center;
font-weight: 600;
```

}

.lightbox-close,
.lightbox-navigation {
position: absolute;

```
border: 0;
background: rgba(0, 0, 0, 0.45);
color: #ffffff;

cursor: pointer;

transition:
    background-color var(--transition),
    transform var(--transition);
```

}

.lightbox-close {
top: 24px;
right: 28px;

```
width: 48px;
height: 48px;

border-radius: 50%;

font-size: 2.1rem;
line-height: 1;
```

}

.lightbox-navigation {
top: 50%;
transform: translateY(-50%);

```
width: 52px;
height: 72px;

border-radius: 14px;

font-size: 2rem;
```

}

.lightbox-close:hover,
.lightbox-navigation:hover {
background: var(--accent);
color: #00131c;
}

.lightbox-previous {
left: 24px;
}

.lightbox-next {
right: 24px;
}

/* =========================================================
10. ONLINE LINKS SECTION
========================================================= */

.online-section {
background: var(--background-soft);
}

.online-grid {
width: min(100%, var(--page-width));
margin: 0 auto;

```
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 22px;
```

}

.online-card {
padding: 30px 24px;

```
display: flex;
flex-direction: column;
align-items: center;

text-align: center;

background: var(--card-background);
border: 1px solid var(--border);
border-radius: var(--border-radius-large);
box-shadow: var(--shadow-small);

transition:
    transform var(--transition),
    box-shadow var(--transition);
```

}

.online-card:hover {
transform: translateY(-7px);
box-shadow: var(--shadow-large);
}

.online-icon {
margin-bottom: 16px;
font-size: 2.7rem;
}

.online-card h3 {
margin-bottom: 10px;
color: var(--accent);
}

.online-card p {
flex-grow: 1;
color: var(--text-secondary);
}

.online-card a {
margin-top: 22px;
padding: 10px 22px;

```
border-radius: 999px;

background: var(--accent);
color: #00131c;

font-weight: 800;

transition:
    background-color var(--transition),
    transform var(--transition);
```

}

.online-card a:hover {
background: var(--accent-hover);
transform: translateY(-2px);
}

/* =========================================================
11. CONTACT SECTION
========================================================= */

.contact-section {
background: var(--background);
}

.contact-card {
width: min(100%, 620px);
margin: 0 auto;
padding: 42px;

```
text-align: center;

background: var(--card-background);
border: 1px solid var(--border);
border-radius: var(--border-radius-large);
box-shadow: var(--shadow-small);
```

}

.contact-card h3 {
color: var(--accent);
font-size: 2rem;
}

.contact-card p {
margin-top: 6px;
color: var(--text-secondary);
}

.contact-card .button {
margin-top: 24px;
}

/* =========================================================
12. BACK-TO-TOP BUTTON
========================================================= */

.back-to-top {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 900;

```
width: 48px;
height: 48px;

display: grid;
place-items: center;

border: 0;
border-radius: 50%;

background: var(--accent);
color: #00131c;

cursor: pointer;
font-size: 1.35rem;
font-weight: 900;

opacity: 0;
visibility: hidden;
transform: translateY(14px);

box-shadow: var(--shadow-small);

transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    background-color var(--transition);
```

}

.back-to-top.is-visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.back-to-top:hover {
background: var(--accent-hover);
}

/* =========================================================
13. FOOTER
========================================================= */

.site-footer {
padding: 38px 20px;

```
text-align: center;

background: #080b0f;
border-top: 1px solid var(--border);
color: #aeb8c4;
```

}

.site-footer p + p {
margin-top: 5px;
}

.site-footer strong {
color: var(--accent);
}

.footer-73 {
margin-top: 13px !important;
color: var(--accent);
font-weight: 800;
}

/* =========================================================
14. TABLET RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1000px) {

```
.station-layout {
    grid-template-columns: 1fr;
}


.stats-grid,
.online-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
```

}

/* =========================================================
15. MOBILE NAVIGATION AND LAYOUT
========================================================= */

@media (max-width: 768px) {

```
section {
    padding: 72px 20px;
}


.navbar {
    width: min(100% - 24px, var(--page-width));
    gap: 12px;
}


.menu-toggle {
    display: block;
    order: 2;
}


.theme-toggle {
    order: 3;
}


.nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;

    width: 100%;
    padding: 18px 20px 24px;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;

    background: var(--card-background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-small);
}


.nav-links.is-open {
    display: flex;
}


.nav-links a {
    display: block;
    padding: 13px 10px;
    text-align: center;
}


.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


.hero {
    min-height: calc(100svh - var(--header-height));
}


.hero-details {
    grid-template-columns: 1fr;
    width: min(100%, 390px);
}


.hero-detail + .hero-detail {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


.about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
}


.about-image-wrapper {
    width: min(100%, 420px);
    margin: 0 auto;
}


.station-details-grid {
    grid-template-columns: 1fr;
}


.lightbox {
    padding: 18px;
}


.lightbox-navigation {
    top: auto;
    bottom: 18px;

    width: 54px;
    height: 48px;

    transform: none;
}


.lightbox-previous {
    left: calc(50% - 64px);
}


.lightbox-next {
    right: calc(50% - 64px);
}


.lightbox-content {
    padding-bottom: 65px;
}
```

}

/* =========================================================
16. SMALL PHONE RESPONSIVE DESIGN
========================================================= */

.gallery-image-button {
    height: 320px;
}

```
.hero-buttons {
    flex-direction: column;
    align-items: stretch;
}


.hero-buttons .button {
    width: 100%;
}


.about-details {
    grid-template-columns: 1fr;
}


.stats-grid,
.online-grid {
    grid-template-columns: 1fr;
}


.gallery-grid {
    grid-template-columns: 1fr;
}


.gallery-item {
    width: min(100%, 340px);
    margin: 0 auto;
}


.gallery-image-button {
    height: 320px;
}


.station-card,
.station-summary,
.contact-card {
    padding: 24px;
}


.station-card-header {
    align-items: flex-start;
}


.station-summary-row {
    flex-direction: column;
    gap: 4px;
}


.station-summary-row strong {
    text-align: left;
}


.back-to-top {
    right: 16px;
    bottom: 16px;
}
```

}

/* =========================================================
17. REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

```
html {
    scroll-behavior: auto;
}


*,
*::before,
*::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}
```

}
/* =========================================
   GALLERY THUMBNAIL SIZE
========================================= */

.gallery-image-button {
    width: 100%;
    height: 220px;
    padding: 0;
    overflow: hidden;
    background-color: #080b0f;
    border: none;
    cursor: zoom-in;
}

.gallery-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.gallery-grid {
    width: min(100%, 1400px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-image-button {
        height: 160px;
    }

    .gallery-content {
        padding: 14px;
    }
}
/* Emergency gallery visibility repair */

.gallery-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;

    grid-template-columns: repeat(
        auto-fill,
        minmax(240px, 1fr)
    );

    gap: 24px;
    width: min(100%, 1400px);
    margin: 0 auto;
}

.gallery-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-image-button {
    display: block !important;
    width: 100%;
    height: 220px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #080b0f;
}

.gallery-image-button img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
}