/* Odpowiednik klas Tailwinda użytych w oryginalnym widgecie - jeden do jednego,
   ale bez ładowania całego frameworka. */

*,
*::before,
*::after {
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
}

.flex {
    display: flex;
}

.w-full {
    width: 100%;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-stretch {
    align-items: stretch;
}

.h-full {
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

/* Awaryjnie, gdy karuzela się nie wczytała - slajdy dalej da się przewinąć. */
.overflow-hidden.no-embla {
    overflow-x: auto;
}

.gap-x-3 {
    column-gap: 0.75rem;
}

.gap-1-5 {
    gap: 0.375rem;
}

.ps-3 {
    padding-inline-start: 0.75rem;
}

.shrink-0 {
    flex-shrink: 0;
}

.mt-5 {
    margin-top: 1.25rem;
}

.aspect-9-16 {
    aspect-ratio: 9 / 16;
}

.h-fit {
    height: fit-content;
}

/* Oryginał zdawał się na naturalną szerokość obrazka przyciętą do 209 px.
   Wychodzi z tego zakleszczenie: dopóki obrazek się nie wczyta, ramka ma zero
   szerokości, a leniwe ładowanie nie rusza obrazka, który nie ma rozmiaru.
   Wynik jest ten sam (209 x 371,5 px), tylko liczony od razu. */
.max-w-209 {
    width: 209px;
    max-width: 209px;
}

.cursor-pointer {
    cursor: pointer;
}

.rounded-2xl {
    border-radius: 1rem;
}

.size-full {
    width: 100%;
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.text-red-500 {
    color: #ef4444;
}

.text-gray-500 {
    color: #6b7280;
}

.embla-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    background-color: #dfdfdf;
    cursor: pointer;
    transition: all 300ms;
}

.embla-dot:hover {
    background-color: #d4d4d8;
}

.embla-dot:active {
    transform: scale(1.05);
}

.embla-dot.is-selected {
    background-color: #5e5e5e;
}

.embla-dot.is-selected:hover {
    background-color: #52525b;
}
