html, body, h1,h2,h3,span,div,a,img,ul,li,strong,header,main,form,input,textarea,button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0 auto;
    padding: 50px 4px 0;
    background-color: #f4f4f4;
    max-width: 900px;
}

h1, h2 {
    text-align: center;
    padding: 20px;
}

header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    height: 70px;
}

header h3 {
    font-size: 20px;
    line-height: 26px;
    color: #9999AD;
    margin-left: auto;
}
header h3 span,
header h3 a {
    color: #444;
    text-decoration: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: auto;
    gap: 6px;
}

.photo {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    overflow: hidden;
    border-radius: 6px;
}

.photo a {
    display: block;
    height: 100%;
}

.photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.preview > img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.preview .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.preview span {
    display: flex;
    align-items: center;
    color: #9999AD;
}
.preview span:first-of-type img {
    margin-right: 8px;
}
.preview span:last-of-type img {
    margin-left: 8px;
}
.photo p {
    text-align: center;
    margin-top: 10px;
    color: #555;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: auto;
}
form input,
label,
form textarea {
    font-family: "Poppins", sans-serif;
}

form input[type="password"],
form textarea {
    margin: 10px 0;
    border: 1px solid #444;
    background-color: #eee;
    outline: 0;
    font-size: 15px;
    line-height: 22px;
    color:#444;
    resize: none;
    width: 100%;
    border-radius: 4px;
    max-width: 500px;
    min-height: 40px;
    padding: 6px 4px;
}

form input[type="file"] {
    display: none;
}

form input[type="submit"],
label[for="image"] {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    line-height: 24px;
}
form input[type="file"] {
    background-color: #1100ff;
}

form input[type="submit"].loading {
    filter: brightness(150%);
}

form input[type="submit"]:hover,
label:hover {
    background-color: #0056b3;
}

textarea {
    width: 100%;
    max-width: 400px;
}

.error {
    color: red;
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}
@media screen and (min-width: 900px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }
}