body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #e9f2fb;
    color: #003366;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

input[type="file"],
input[type="text"],
textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* GALLERI */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

#gallery img,
#gallery video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#gallery img:hover,
#gallery video:hover {
    transform: scale(1.03);
}

/* LIGHTBOX (fra tidligere) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightbox-content img,
#lightbox-content video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px black;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }
}

.upload-button {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.upload-button:hover {
    background-color: #0056b3;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #003366;
}
.caption {
    background: rgba(255,255,255,0.7);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 8px black;
    text-align: center;
    width: 90%;
}

.cover {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}


.cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.admin-table th {
  background-color: #ff85a2;
  color: white;
}
.delete-link {
  color: red;
  font-weight: bold;
}

.upload-count {
    font-size: 1rem;
    color: #0d6efd; /* Bootstrap-blå */
    margin-bottom: 1rem;
    font-weight: 500;
}

.load-more-wrapper {
  text-align: center;
  margin: 20px auto;
}

#loader {
  font-size: 1rem;
  color: #0d6efd;
  margin-top: 10px;
}

