.presura-photo-page {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
}

.presura-photo-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.presura-photo-heading > div:first-child {
    max-width: 48rem;
}

.presura-photo-eyebrow {
    color: var(--presura-teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.presura-photo-heading h1 {
    margin: .3rem 0 .7rem;
    color: var(--presura-text);
    font-family: var(--presura-font-display);
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    line-height: .98;
}

.presura-photo-heading p,
.presura-photo-upload__intro p,
.presura-photo-empty p {
    margin: 0;
    color: var(--presura-text-muted);
}

.presura-photo-heading__actions {
    display: flex;
    flex: 0 1 34rem;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.presura-photo-search {
    width: min(100%, 22rem);
}

.presura-photo-search svg,
.presura-photo-empty svg,
.presura-photo-card__location svg {
    width: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.presura-photo-upload {
    margin-bottom: 2rem;
    border-color: color-mix(in srgb, var(--presura-teal) 28%, var(--tblr-border-color));
    scroll-margin-top: 5rem;
}

.presura-photo-upload .card-body {
    display: grid;
    grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.presura-photo-upload h2 {
    margin: .35rem 0 .6rem;
    color: var(--presura-text);
    font-family: var(--presura-font-display);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.presura-photo-identity {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.4rem;
}

.presura-photo-identity > span:last-child {
    display: grid;
    min-width: 0;
}

.presura-photo-identity small {
    overflow: hidden;
    color: var(--presura-text-muted);
    text-overflow: ellipsis;
}

.presura-photo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.presura-photo-form-grid .form-label {
    margin: 0;
}

.presura-photo-form-grid .form-label > span {
    display: block;
    margin-bottom: .4rem;
    font-weight: 700;
}

.presura-photo-file,
.presura-photo-caption {
    grid-column: 1 / -1;
}

.presura-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.presura-photo-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--presura-shadow-soft);
}

.presura-photo-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--presura-teal) 8%, var(--tblr-card-bg));
}

.presura-photo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.presura-photo-card:hover .presura-photo-card__media img {
    transform: scale(1.025);
}

.presura-photo-card__weather {
    position: absolute;
    top: .8rem;
    right: .8rem;
    padding: .35rem .6rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(3, 28, 27, .76);
    color: white;
    font-size: .72rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.presura-photo-card .card-body {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    padding: 1rem;
}

.presura-photo-card__meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
}

.presura-photo-card__meta > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.presura-photo-card__meta strong,
.presura-photo-card__meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presura-photo-card__meta small,
.presura-photo-card__meta time {
    color: var(--presura-text-muted);
    font-size: .72rem;
}

.presura-photo-card h2 {
    margin: 1rem 0 .35rem;
    color: var(--presura-text);
    font-family: var(--presura-font-display);
    font-size: 1.3rem;
}

.presura-photo-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 1rem;
    color: var(--presura-text-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.presura-photo-card__location {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    color: var(--presura-teal);
    font-size: .82rem;
    font-weight: 700;
}

.presura-photo-empty {
    display: grid;
    min-height: 22rem;
    place-items: center;
    align-content: center;
    padding: 2rem;
    border: 1px dashed var(--tblr-border-color);
    border-radius: 1rem;
    text-align: center;
}

.presura-photo-empty__icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--presura-teal) 12%, transparent);
    color: var(--presura-teal);
}

.presura-photo-empty__icon svg {
    width: 2rem;
}

.presura-photo-empty h2 {
    margin: 0 0 .5rem;
}

.presura-photo-no-results {
    padding: 3rem;
    color: var(--presura-text-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    .presura-photo-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .presura-photo-heading__actions {
        flex: none;
        justify-content: flex-start;
    }

    .presura-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .presura-photo-page {
        padding-top: 1.25rem;
    }

    .presura-photo-heading__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .presura-photo-search {
        width: 100%;
    }

    .presura-photo-upload .card-body,
    .presura-photo-form-grid,
    .presura-photo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .presura-photo-file,
    .presura-photo-caption {
        grid-column: auto;
    }

    .presura-photo-card__meta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .presura-photo-card__meta time {
        grid-column: 2;
    }
}
