/* Photo Collection plugin styles */

.pc-photo-form {
    max-width: 720px;
    padding: 1rem;
    border: 1px solid currentColor;
}

.pc-photo-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pc-photo-form input[type="text"],
.pc-photo-form input[type="email"],
.pc-photo-form input[type="file"],
.pc-photo-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.pc-photo-form small {
    display: block;
    margin-top: 0.25rem;
}

.pc-checkbox label {
    font-weight: 400;
}

.pc-checkbox input {
    margin-right: 0.5rem;
}

.pc-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid currentColor;
}

.pc-gallery {
    display: grid;
    gap: 1.25rem;
}

.pc-columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.pc-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pc-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.pc-gallery-item {
    margin: 0;
}

.pc-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.pc-gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.pc-caption,
.pc-credit {
    display: block;
}

.pc-credit {
    font-style: italic;
    margin-top: 0.25rem;
}

@media (max-width: 800px) {
    .pc-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pc-gallery {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
