/* ── Hover Grid – Front-end styles ── */

.hg-grid {
    display: grid;
    gap: 0;
    width: 100%;
    max-width: 100%;
}
.hg-tile {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  margin-top: 10px!important;
  border-radius: 10px;
}

/* 4 kafle – [hover_grid] */
.hg-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 6 kafli – [pierwszy_grid] */
.hg-grid--6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ── Single tile ── */
.hg-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin: 0 5px;
    background-image: var(--hg-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ── Overlay – zawsze widoczny ── */
.hg-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.00) 100%
    );
}

/* ── Title – zawsze widoczny ── */
.hg-tile__title {
    color: #ffffff;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.2rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Button – zawsze widoczny ── */
.hg-tile__btn {
    display: inline-block;
    padding: 0.65rem 1.8rem;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.hg-tile__btn:hover {
    background: #ffffff;
    color: #111111;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .hg-grid--6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hg-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hg-grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hg-grid--4,
    .hg-grid--6 {
        grid-template-columns: 1fr;
    }

    .hg-tile {
        aspect-ratio: 4 / 3;
    }
}
