.attention {
	font-weight: normal;
	font-size: 0.9em;
}

.nav-tip {
	color: magenta;
}

/* AddThis integration removed - no longer needed
.addthis_button_google_plusone{
width: 60px !important;
}

.addthis_button_tweet{
width: 80px !important;
}
*/

.left-ad-col {
	max-width: 170px;
}

textarea {
    max-width: 100%;
}

input {
    max-width: 95%;
}

img {
    max-width: 100%;
    height: auto;
    overflow: auto;
}

/* Ensure gallery images maintain aspect ratio */
#galleryImage {
    width: auto;
    max-width: 100%;
    height: auto !important;
}

.g-thumb-caption {
	overflow: auto;
}

@media (max-width:640px) {
	.g-pagetitle {
		font-size: 0.9em;
		width: 70%;
	}

	.g-navbar-top {
		line-height: 50%;
	}

	.g-navbar-top img {
		margin-right: 18px;
	}
	.g-adminbartext {
		font-size: 0.8em;
		font-weight: normal;
	}

	
	.g-va-thumb-texts {
		font-size: 0.8em;
        font-weight: normal;
	}

	.g-vathumb {
    	float: left;
	}
    body {
        font-size: 0.9em;
        line-height: 1em;
		font-weight: normal;
    }

    li {
        margin-bottom: 3px;
    }

    /* table display:block removed to fix layout issues */

	#galleryImage {
		max-height: 360px;
	}

    a {
        font-size: 0.8em;
    }

    p {
        font-size: 0.98em;
        line-height: 0.98em;
    }

	/* AddThis integration removed - no longer needed
	.addthis_toolbox {
  width: 330px;
  margin-left: auto ;
  margin-right: auto ;
	}
	*/
	.form-wrapper {
		max-width: 315px;
		max-height: 30px;
		margin-top: -20px;
	}

	.form-wrapper #search {
		max-width: 230px;
	}

	.form-wrapper #submit {
		max-width: 80px;
		font-size: 11px;
		max-height: 20px;
	}

	.mod_headliner{
		margin-bottom: -70px;
	}

	#menu {
	}

	h1 {
		margin-top: 5px;
		font-size: 1em;
	}

	h3 {
		font-size: 0.8em;
	}

	.modnavbox {
		margin-top: 25px;
	}

	.mod_under_h1 {
		margin-bottom: -25px;
	}

	.photo-table {
		margin-bottom: -15px;
	}

	.head {
		font-size: 12px;
		height: 15px;
		line-height: 100%;
		margin-bottom: -20px;
	}

	.mod_toplight_bg {
		margin-top: -10px;
		margin-bottom: -10px;
	}

	.mod_toplight_left {
		background-image: none;
		height: 0px;
		width: 0px;
	}

	.leftspacer {
		width: 0px;
	}

	.left-ad-col {
    	max-width: 100%;
	}

	h1 {
		font-size: 12px;	
	}

	.navtable {
		margin-top: -35px;
		border: none;
	}

	.navtableborderbegin, .navtableborderend {
		border: none;
	}

	#adminbox td {
		background-image: none;
		background-color: white;
	}

	#adminbox a {
		color: blue;
	}

	.nav-tip {
		display: block;
		text-align: center;
		border: 1px gray dashed;
	}

	.g-borderleft {
		display: block;
	}

	.g-commentadd-box {
		max-width: 320px;
	}
		
	textarea {
		max-width: 90%;
	}

	.g-vathumb-cell {
		border: none;
		background-color: none;
		padding: 5px;
	}
}

.gallery-responsive-bottom { width: 300px; height: 250px; }
@media(min-width: 600px) { .gallery-responsive-bottom { width: 468px; height: 60px; } }
@media(min-width: 800px) { .gallery-responsive-bottom { width: 728px; height: 90px; } }

.gallery-responsive-side-bar { width: 320px; height: 50px; }
@media(min-width: 800px) { .gallery-responsive-side-bar { width: 160px; height: 600px; } }

/* Fix for alignment in Tailwind cards */
.g-tw-album-card .right {
    float: none !important;
    display: inline-block;
}
.g-tw-album-card {
    min-width: 180px;
    flex: 1 1 200px;
    max-width: 300px;
}

.g-tw-album-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* Fix photo viewer sizing */
.g-tw-photo-viewer img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
}
.g-photo-description.left {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Override mobile max-height for gallery image */
.g-tw-photo-viewer #galleryImage {
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
}

.g-layout-table { width: 100% !important; }
.g-tw-photo-viewer { width: 100% !important; }

/* Extra aggressive mobile fix for photo sizing */
@media (max-width: 640px) {
    .g-layout-table, .g-layout-table tr, .g-layout-table td {
        display: block !important;
        width: 100% !important;
    }
    .g-tw-photo-viewer {
        display: block !important;
        width: 100% !important;
        text-align: center;
    }
    .g-tw-photo-viewer div {
        max-width: 100% !important;
    }
    #galleryImage {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Fix page title width on mobile */
@media (max-width: 640px) {
    .g-pagetitle {
        width: 100% !important;
    }
}

/* Remove outdated background images */
.g-header, .g-title-background, .g-title-left, .g-pagetitle-popup, .g-navbar-top, .g-navbar-bottom {
    background-image: none !important;
}

/* Center photo viewer and comment form on desktop */
@media (min-width: 641px) {
    .g-tw-photo-viewer {
        margin: 0 auto;
        width: auto !important;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
    }
    .g-tw-photo-viewer img {
        max-width: 100%;
        height: auto;
        max-height: 80vh;
    }
    form[name="comment_form"] {
        margin: 0 auto;
        max-width: 800px;
        text-align: center;
    }
    .g-commentadd-box {
        margin: 0 auto;
    }
}

/* Force center photo on desktop */
@media (min-width: 641px) {
    .g-tw-photo-viewer {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
    .g-tw-photo-viewer img {
        display: inline-block !important;
        margin: 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 80vh !important;
    }
    .g-tw-photo-viewer div.inline-block {
        display: inline-block !important;
        margin: 0 auto !important;
    }
}

/* Center fieldset and legend in comment form */
fieldset {
    margin: 0 auto !important;
    width: fit-content !important;
    max-width: 100% !important;
}
legend {
    margin: 0 auto !important;
    display: table !important;
    float: none !important;
}

/* Fix h1 font size on photo page */
.g-photo-caption h1 {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    margin: 1rem 0;
}

/* Enforce H1 font size on photo page */
.g-photo-caption h1 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Fix album card layout */
.g-tw-album-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.g-tw-album-card .g-vathumb {
    float: none !important;
}

/* Force H1 size on photo page specifically */
.g-photo-caption h1 {
    
    font-weight: bold !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.2 !important;
}

/* Extreme specific H1 resizing for photo page */
body .g-main .g-photo-texts h1,
body .g-main .g-photo-texts .g-photo-caption h1 {
    
    font-weight: 800 !important;
    display: block !important;
    text-align: center !important;
    margin: 1.5rem 0 !important;
}

/* Improve mobile margins and album summary */
@media (max-width: 640px) {
    .g-main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .g-tw-album-container {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
}

/* Final mobile margin and summary box fixes */
@media (max-width: 640px) {
    .g-main {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .g-tw-album-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 1rem !important;
    }
}
.bg-gradient-to-r.from-pink-50 {
    max-height: 220px !important;
    overflow-y: auto !important;
    display: block !important;
}

/* Fix album H1 visibility and style */
.g-header h1 {
    color: #111827 !important; /* Dark gray/black */
    font-size: 1.25rem !important; /* 30px */
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-align: center;
}

/* Center everything in album card info section */
.g-tw-album-card .p-3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.g-tw-album-card .right {
    float: none !important;
    display: block !important;
    margin: 0.25rem auto !important;
}

.g-tw-album-card select {
    margin: 0.5rem auto !important;
    display: block !important;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Even smaller metadata in album page */
.g-tw-album-card .text-\[11px\], 
.g-tw-album-card .text-xs, 
.g-tw-album-card .text-gray-400 {
    font-size: 10px !important;
}
.g-tw-album-card select {
    font-size: 10px !important;
    padding: 1px 4px !important;
    height: auto !important;
}

/* Reduce font sizes for metadata in album cards */
.g-tw-album-card .text-gray-400,
.g-tw-album-card .text-gray-500,
.g-tw-album-card .mt-2 {
    font-size: 9px !important;
}
.g-tw-album-card select {
    font-size: 9px !important;
}

/* Force flex layout for voting results */
.g-sitedesc ul {
    list-style: none !important;
    padding: 0 !important;
}
.g-sitedesc li .flex {
    display: flex !important;
    align-items: center !important;
}
.g-sitedesc li .flex-1 {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

/* Final fix for voting results line breaks */
.g-sitedesc li div.flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
.g-sitedesc li span.w-6 {
    display: inline-block !important;
    width: 1.5rem !important;
    flex-shrink: 0 !important;
}

/* Smaller Last Comment text in album items */
.g-tw-album-card .text-sm br + span,
.g-tw-album-card .text-sm br + text {
    font-size: 10px !important;
    color: #9ca3af !important;
}

/* Style for Last Comment metadata */
.g-metadata {
    font-size: 10px !important;
    color: #9ca3af !important;
    font-weight: normal !important;
}

/* Improved centering for photo viewer */
@media (min-width: 641px) {
    .g-tw-photo-viewer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    .g-tw-photo-viewer .inline-block.relative {
        display: inline-block !important;
        margin: 0 auto !important;
    }
}

/* Center photo viewer on mobile */
@media (max-width: 640px) {
    .g-tw-photo-viewer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    .g-tw-photo-viewer .inline-block.relative {
        display: inline-block !important;
        margin: 0 auto !important;
    }
}

/* Final Consolidated Centering Fix */
.g-tw-photo-viewer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
}
.g-tw-photo-viewer .inline-block.relative {
    display: inline-block !important;
    margin: 0 auto !important;
}
