* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #ffffff;
	color: #474747;
	font-family: 'Cherry Cream Soda', cursive;
	line-height: 1.6;
	font-size: 16px;
}

.public-site {
	caret-color: transparent;
}

.hidden {
	display: none !important;
}

#wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-x: hidden;
}

#main {
	max-width: 900px;
	width: 100%;
	padding: 40px 40px 60px;
}

.inner {
	position: relative;
	text-align: center;
}

/* Header */
header {
	min-height: 220px;
	margin-bottom: 40px;
}

.logo-container {
	margin-bottom: 40px;
}

.logo-container img {
	max-width: 200px;
	height: auto;
	display: inline-block;
}

.nav-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}

.nav-btn, .admin-btn {
	position: relative;
	background: white;
	border: none;
	padding: 10px 20px;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 2px;
	cursor: pointer;
	color: #363E85;
	font-weight: 500;
	transition: all 0.3s ease;
	border-radius: 20px;
	font-family: inherit;
}

.nav-btn:hover, .admin-btn:hover {
	background-color: #eeeeee;
}

.nav-btn.active {
	background-color: transparent;
}

.nav-btn::after {
	content: '';
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 3px;
	height: 2px;
	background: #363E85;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.35s ease;
}

.nav-btn.active::after {
	transform: scaleX(1);
}

.admin-btn {
	font-size: 10px;
	padding: 8px 15px;
	background: #f0f0f0;
}

hr {
	border: none;
	border-top: 1px solid #cccccc;
	margin: 30px 0;
}

/* Sections */
.section {
	display: none;
	animation: fadeIn 0.5s ease;
}

.section.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.section h2 {
	font-family: inherit;
	font-size: 28px;
	text-transform: uppercase;
	letter-spacing: 5px;
	margin-bottom: 40px;
	color: #474747;
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 40px 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
	cursor: pointer;
	transition: transform 0.3s ease;
	border: 0;
	padding: 0;
	font: inherit;
	text-align: left;
	background: none;
}

.gallery-item:hover {
	transform: scale(1.02);
}

.gallery-item img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
}

.gallery-item-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 10px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-item-description {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 42px 12px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
	color: #fff;
	font-size: 13px;
	text-align: left;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-description,
.gallery-item:focus-within .gallery-item-description {
	opacity: 1;
	transform: translateY(0);
}

.gallery-item:hover .gallery-item-title {
	opacity: 1;
}

.gallery-item-description {
	display: none;
}

/* About Section */
.about-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
	margin: 40px 0;
}

.about-text {
	text-align: left;
}

.about-text h2 {
	font-family: inherit;
	font-size: 36px;
	text-align: left;
	margin-bottom: 10px;
	letter-spacing: 0;
	text-transform: none;
}

.about-text p {
	font-size: 14px;
	line-height: 1.8;
	margin: 15px 0;
	color: #474747;
}

#author-bio {
	white-space: pre-line;
}

.about-logo {
	max-width: 220px;
	max-height: 140px;
	object-fit: contain;
	display: block;
	margin-bottom: 18px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#author-title {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 3px;
	font-weight: 300;
}

.social-icons {
	margin-top: 30px;
	display: flex;
	gap: 20px;
}

.social-icons a {
	color: #363E85;
	text-decoration: none;
	font-size: 12px;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.social-icons a:hover {
	color: #309EDB;
}

.about-image img {
	max-width: 100%;
	height: auto;
}

.text-page {
	text-align: left;
}

.text-page p {
	white-space: pre-line;
	line-height: 1.9;
}

.media-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 60px 24px 24px;
}

.media-modal.hidden { display: none !important; }
.media-modal img, .media-modal video { max-width: 92vw; max-height: calc(100vh - 190px); object-fit: contain; }
.media-preview-content { max-width: 92vw; max-height: calc(100vh - 84px); overflow-y: auto; text-align: center; color: #fff; }
.media-preview-inner { padding-bottom: 12px; }
.media-description { margin-top: 16px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.media-close { position: absolute; top: 15px; right: 24px; border: 0; background: none; color: #fff; font-size: 42px; cursor: pointer; }

/* Admin Modal */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	transition: opacity 0.3s ease;
}

.modal.hidden {
	display: none;
	opacity: 0;
}

.modal-content {
	background: white;
	padding: 40px;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	border: none;
	background: none;
	cursor: pointer;
	color: #474747;
}

.close-btn:hover {
	color: #000;
}

.modal-content h2 {
	font-size: 24px;
	margin-bottom: 25px;
	color: #363E85;
}

/* Admin Tabs */
.admin-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	border-bottom: 2px solid #eeeeee;
}

.tab-btn {
	background: none;
	border: none;
	padding: 12px 20px;
	cursor: pointer;
	color: #999;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	font-family: inherit;
	text-transform: uppercase;
	font-size: 12px;
}

.tab-btn.active {
	color: #363E85;
	border-bottom-color: #363E85;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Forms */
.form-group {
	margin-bottom: 20px;
	text-align: left;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #474747;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 14px;
	color: #474747;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: #363E85;
	box-shadow: 0 0 5px rgba(54, 62, 133, 0.1);
}

/* Buttons */
.btn-save, .btn-cancel, .btn-add {
	padding: 10px 25px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	transition: all 0.3s ease;
	font-family: 'Source Sans Pro', sans-serif;
	margin-right: 10px;
	margin-top: 10px;
}

.btn-save {
	background: #363E85;
	color: white;
}

.btn-save:hover {
	background: #2a3162;
}

.btn-cancel {
	background: #ddd;
	color: #474747;
}

.btn-cancel:hover {
	background: #ccc;
}

.btn-add {
	background: #363E85;
	color: white;
	width: 100%;
	padding: 12px;
}

.btn-add:hover {
	background: #2a3162;
}

/* Works List */
.works-list {
	margin: 20px 0;
}

.work-item {
	background: #f5f5f5;
	padding: 15px;
	margin-bottom: 10px;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
}

.work-item-info {
	flex: 1;
}

.work-item-title {
	font-weight: 600;
	color: #363E85;
	margin-bottom: 5px;
}

.work-item-category {
	font-size: 12px;
	color: #999;
	text-transform: uppercase;
}

.work-item-actions {
	display: flex;
	gap: 8px;
}

.btn-edit, .btn-delete {
	padding: 6px 12px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
}

.btn-edit {
	background: #4CAF50;
	color: white;
}

.btn-delete {
	background: #f44336;
	color: white;
}

.btn-edit:hover {
	background: #45a049;
}

.btn-delete:hover {
	background: #da190b;
}

.hidden {
	display: none;
}

/* Responsive */
@media (max-width: 768px) {
	#main {
		padding: 30px 20px;
	}

	.nav-buttons {
		flex-direction: column;
	}

	.nav-btn::after {
		left: 50%;
		right: auto;
		width: 70px;
		transform: translateX(-50%) scaleX(0);
	}

	.nav-btn.active::after {
		transform: translateX(-50%) scaleX(1);
	}

	.about-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.gallery {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}

	.modal-content {
		padding: 25px;
		max-width: 95%;
	}
}
