.control-icon {
	width: 20px;
	position: absolute;
	left: -30px;
	top: 0px;
	opacity:.7;
	transition:all .5s;
}
.control-icon:hover { cursor: pointer; }
.gallery-flex {
	display:flex;
	gap: 30px;
}
.filter-bar {
	width: 100%;
	margin-bottom: 50px;
	display: flex;
	gap: 30px;
	justify-content: center;
	align-items: center;
	background: var(--light-lavender);
	border: 2px solid var(--night-sky);
	padding: 30px;
}
.art-gallery {
	padding: 0 32px 32px;
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	justify-content: center;
}

.art-gallery .artwork {
	width: 250px;
}
.art-gallery .artwork:hover {
	cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--dark-grey);
}
.art-gallery .artwork .gallery-img {
	width: 100%;
	padding-bottom: 75%;
	height: 0;
	background-color: var(--light-lavender);
}
.cat-select, .color-select {
	padding: 10px;
	border: 1px solid var(--dark-grey);
	display: flex; 
	align-items: center;
	gap: 8px; 
	width: 225px;
	background:white;
	font-size: 14px;
}

.cat-select:hover, .color-select:hover {
	cursor: pointer;
}

.cat-select span, .color-select span {
	margin-right: auto;
}

.cat-dropdown, .color-dropdown {
	position: absolute;
	top: 100%;
	left:0;
	z-index: 99;
	width: 100%;
	padding: 16px;
	background: white;
	border: 1px solid var(--dark-grey);
	box-shadow: 0 0 20px var(--dark-grey);
}

.cat-dropdown li, .color-dropdown li {
	position: relative;
}

.cat-dropdown li span, .color-dropdown li span {
	position: absolute;
	left: -25px;
	top: 1px;
}

.cat-select svg, .color-select svg { width: 18px; height: 18px; transition: all .5s; }

.rotate90 { transform: rotate(-90deg); }

.cat-dropdown li.disabled,
.color-dropdown li.disabled {
  display:none;
}

.artwork-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.artwork-search-form label {
    margin-bottom: 0;
}

.artwork-search-box {
    border: 1px solid var(--dark-grey);
    width: 470px;
    height: 100%;
    box-sizing: border-box;
}

.artwork-search-box input {
	width: 100%;
	height:100%;
	padding:10px;
	border:none;
}

.artwork-search-box svg {
	width: 14px;
	position: absolute;
	right: 8px;
	top: 50%;
	transform:translate(0,-50%);
}

.art-gallery.loading::after {
    content: 'Loading...';
    display: block;
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: var(--dark-grey);
}
.vertical-bar {
	height: 50px;
	width: 2px;
	background:var(--dark-grey);
	border-radius: 50%;
}

.title-flex {
	display:flex;
	align-items: flex-end;
	margin-top: 10px;
}

.title-flex h6 {
	margin-right: auto;
}
.title-flex .year-painted {
	font-size: 14px;
}

.desc {
	margin-top: 10px;
}

.artwork-meta {
	margin-top: 10px;
	font-size: 12px;
}

.artwork-details-card {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
    padding: 5px;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1010;
}

.modal-close svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.artwork-modals-container {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.aw-modal-flex {
    display: flex;
    gap: 30px;
}

.aw-modal-img-side {
    flex: 1;
}

.aw-modal-img-side img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.aw-modal-info-side {
    flex: 1;
}

.aw-modal-info-side h4 {
    margin-top: 0;
    font-size: 2em;
}

.aw-modal-info-side .desc {
    margin-bottom: 20px;
}

.aw-modal-info-side .details {
    list-style: none;
    padding-left: 20px;
    margin: 0 0 20px 0;
}

.aw-modal-info-side .details li {
    margin-bottom: 10px;
    font-size:14px;
}

.buy-now-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--jasper);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    margin-right: 10px;
}

.buy-now-button:hover {
    background: var(--clay);
}

.edit-post-button {
    display: inline-block;
    padding: 10px 20px;
    color: var(--night-sky);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    position:absolute;
    bottom:0;
    right:0;
    font-size:12px;
}

@media (max-width: 768px) {
    .aw-modal-flex {
        flex-direction: column;
    }

    .artwork-modals-container {
        width: 90%;
        padding: 20px;
    }
}

/* Magnify Overlay */
.magnify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.magnify-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 2010;
}

.magnify-close svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* Inner Modal Close */
.modal-inner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 100;
}

.modal-inner-close svg {
    width: 20px;
    height: 20px;
    fill: var(--night-sky);
    transition: transform 0.3s;
}

.modal-inner-close:hover svg {
    transform: rotate(90deg);
}

/* Artwork Story */
.artwork-story {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid var(--light-lavender);
}

.artwork-story h6 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--night-sky);
}

.read-story-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--night-sky);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
    border: 1px solid var(--night-sky);
}

.read-story-button:hover {
    background: transparent;
    color: var(--night-sky);
}

.magnify-content {
    width: 95%;
    height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magnify-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.aw-modal-img-side img {
    cursor: pointer; /* Indicate it can be clicked */
    transition: opacity 0.2s;
}

.aw-modal-img-side img:hover {
    opacity: 0.9;
}