/* Form Styling */
.sas-form-container {
    background-color: #2b3a82;
    /* From the screenshot */
    border-radius: 5px;
    max-width: 500px;
    font-family: Arial, sans-serif;
}

.sas-form-container .sas-success {
    color: #4CAF50;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
}

.sas-form-container .sas-error {
    color: #f44336;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
}

.sas-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sas-field {
    display: flex;
    flex-direction: column;
}

.sas-field label {
    color: #87c5e5;
    margin-bottom: 5px;
    font-size: 16px;
}

.sas-field input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    width: 100%;
}

.sas-file-upload input[type="file"] {
    color: #777;
}

.sas-file-upload input[type="file"]::file-selector-button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 10px;
}

.sas-submit-btn {
    background-color: #6bbce1;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    width: 150px;
    text-align: center;
}

.sas-submit-btn:hover {
    background-color: #5aaad0;
}

/* Gallery Styling */
.sas-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Always 4 equal-width columns */
    gap: 20px;
    background-color: #2b3a82;
}

.sas-gallery-item {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.sas-polaroid {
    background: white;
    padding: 10px 10px 25px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    /* Polaroid fills the column */
    box-sizing: border-box;
}

.sas-polaroid img {
    width: 100%;
    height: 220px !important;
    /* Fixed height Ã¢â‚¬â€ same for every image */
    object-fit: fill;
    /* Crop to fill, no squishing */
    display: block;
    margin-bottom: 25px;
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 900px) {
    .sas-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .sas-gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .sas-polaroid img {
        height: auto !important;
    }
}

.sas-caption h3 {
    text-align: center;
    font-family: "Rock Salt", Sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 11px;
    margin: 0 0 20px 0;
    /* Space between Name and Location */
    color: #555;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.sas-caption p {
    text-align: center;
    font-family: "Rock Salt", Sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 11px;
    margin: 0;
    color: #555;
    text-transform: uppercase;
}

button.sas-submit-btn {
    background-color: var(--e-global-color-primary);
    color: #fff;
    border: 1px solid var(--e-global-color-primary);
}