@font-face {
    font-family: 'Inter';
    src: url('/wp-content/plugins/gp_dev_editor/fonts/Inter-Normal-400.woff2') format('woff2') !important;
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/plugins/gp_dev_editor/fonts/Roboto-Normal-400.woff2') format('woff2') !important;
    font-weight: normal !important;
    font-style: normal !important;
}

@font-face {
    font-family: 'Roboto-Condensed';
    src: url('/wp-content/plugins/gp_dev_editor/fonts/Roboto-Condensed-Normal-400.woff2') format('woff2') !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* Boxed container for both pages */
.gp-editor-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Top front-end menu */
.gp-editor-nav {
    background-color: #F7F7F7;
    width: 100%;
}
.gp-editor-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0 0 0;
}
.gp-editor-logo img {
    height: 40px;
    margin-right: 20px;
}
.gp-editor-nav-inner a {
    position: relative;
    display: block;
    padding: 8px 25px 10px 8px;
    text-decoration: none;
    line-height: 1.2em;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 400;
    color: #5C5C5C;
    font-family: 'Roboto', Sans-Serif;
    overflow: visible;
    margin-right: 20px;
}
.gp-editor-nav-inner a:hover {
    color: #0B1127;
    transition: color 0.4s ease;
}
/* Logout button far right */
.logout-button {
    margin-left: auto;
}

/* AJAX category menu */
.gp-editor-ajax-nav {
    text-align: center;
    margin: 10px 0;
    padding-bottom: 17px;
}
.gp-editor-ajax-nav a {
    position: relative;
    line-height: 1em;
    font-size: 0.8em;
    text-transform: capitalize;
    font-weight: 400;
    color: #9D9D9D;
    font-family: 'Roboto-Condensed', Sans-Serif !important;
    padding: 6px 12px 6px 6px;
    overflow: visible;
    margin-right: 10px;
}
.gp-editor-ajax-nav a:hover {
    color: #0B1127;
    transition: color 0.4s ease;
}

/* === Responsive flex grid with fixed 200×200 thumbnails === */
.gp-dev-portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}
.gp-dev-portfolio-item {
    flex: 1 1 calc(20% - 10px);
    max-width: calc(20% - 10px);
    margin: 5px;
    overflow: hidden;
    height: 200px;
}
.gp-dev-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 1000px) {
    .gp-dev-portfolio-item {
        flex: 1 1 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}
@media (max-width: 600px) {
    .gp-dev-portfolio-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Media-browser in edit form */
.gp-dev-media-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gp-dev-media-container img {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
}
.gp-dev-media-button {
    padding: 6px 12px;
}

/* Unified Save/Cancel side-by-side */
.button-container {
    display: flex;
    gap: 10px;
}
.button-container .button {
    width: 50%;
    text-align: center;
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    font-family: 'Roboto-Condensed', Sans-Serif !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding:.8em;
}
.button-container .button:hover {
    opacity: 0.8 !important;
}

/* --- Original uploader CSS below (unchanged) --- */
.gp-dev-container {
    background-color: #ffffff !important;
    color: #000000 !important;
    max-width: 800px !important;
    margin: 30px auto !important;
    padding: 20px !important;
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #ccc !important;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.gp-dev-container h2 {
    text-align: center !important;
    margin-bottom: 20px !important;
    font-size: 2em !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
}

.gp-dev-field {
    margin-bottom: 20px !important;
    width: 100% !important;
}

.gp-dev-field label {
    display: block !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
}

.gp-dev-field input[type="text"],
.gp-dev-field textarea,
.gp-dev-field select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
}

.gp-dev-field textarea {
    resize: vertical !important;
    height: 120px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.2rem !important;
}

.gp-dev-field input[type="submit"] {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
    display: block !important;
    margin: 0 auto !important;
}

.gp-dev-field input[type="submit"]:hover {
    opacity: 0.8 !important;
}

.gp-dev-login-container {
    max-width: 400px !important;
    margin: 50px auto !important;
    padding: 20px !important;
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
}

.gp-dev-login-help {
    margin-top: 10px !important;
    font-size: 0.9em !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
}

#gp-dev-drop-area {
    border: 2px dashed #000000 !important;
    padding: 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    position: relative !important;
}

#gp-dev-drop-area.hover {
    background-color: #f2f2f2 !important;
}

.gp-dev-drop-label {
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
}

#gp-dev-upload-results {
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.gp-dev-preview {
    border: 1px solid #ccc !important;
    padding: 5px !important;
    width: 100px !important;
    height: 100px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gp-dev-preview img {
    max-width: 100% !important;
    max-height: 100% !important;
}

.gp-dev-gallery-checkboxes {
    display: block !important;
    margin: 10px 0 !important;
}

.gp-dev-gallery-checkboxes label {
    display: block !important;
    margin-bottom: 5px !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
}

#new_gallery {
    display: inline-block !important;
    width: calc(100% - 100px) !important;
}

#create-new-gallery {
    display: inline-block !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
    padding: 10px 15px !important;
    margin-left: 10px !important;
}

#new-gallery-message {
    margin-left: 10px !important;
    font-family: 'Roboto-Condensed', sans-serif !important;
    font-size: 1rem !important;
}

/* Inline status messages at bottom of edit form */
.gp-dev-notice-success,
.gp-dev-notice-error {
  font-style: italic;
  text-align: center;
  margin-top: 20px;
}
.gp-dev-notice-success {
  color: #000 !important;
}
.gp-dev-notice-error {
  color: darkred !important;
}
